瀏覽代碼

Adds type protection

main
Eric Amodio 5 年之前
父節點
當前提交
0dde5425b3
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. +3
    -1
      src/commands/copyRemoteFileUrlToClipboard.ts

+ 3
- 1
src/commands/copyRemoteFileUrlToClipboard.ts 查看文件

@ -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…
取消
儲存