Browse Source

Adds type protection

main
Eric Amodio 5 years ago
parent
commit
0dde5425b3
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/commands/copyRemoteFileUrlToClipboard.ts

+ 3
- 1
src/commands/copyRemoteFileUrlToClipboard.ts View File

@ -11,6 +11,7 @@ import {
getCommandUri,
isCommandViewContextWithCommit
} from './common';
import { OpenFileInRemoteCommandArgs } from './openFileInRemote';
export interface CopyRemoteFileUrlToClipboardCommandArgs {
range?: boolean;
@ -66,6 +67,7 @@ export class CopyRemoteFileUrlToClipboardCommand extends ActiveEditorCommand {
}
}
return commands.executeCommand(Commands.OpenFileInRemote, uri, { ...args, clipboard: true });
const commandArgs: OpenFileInRemoteCommandArgs = { ...args, clipboard: true };
return commands.executeCommand(Commands.OpenFileInRemote, uri, commandArgs);
}
}

Loading…
Cancel
Save