From 1392fc2d6562e6841f6c069e436df3254c71ea66 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Thu, 23 May 2019 14:33:08 -0400 Subject: [PATCH] Fixes copy remote url not including line range --- src/commands/copyRemoteFileUrlToClipboard.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/copyRemoteFileUrlToClipboard.ts b/src/commands/copyRemoteFileUrlToClipboard.ts index 2aead55..4d67b71 100644 --- a/src/commands/copyRemoteFileUrlToClipboard.ts +++ b/src/commands/copyRemoteFileUrlToClipboard.ts @@ -24,7 +24,7 @@ export class CopyRemoteFileUrlToClipboardCommand extends ActiveEditorCommand { } protected preExecute(context: CommandContext, args: CopyRemoteFileUrlToClipboardCommandArgs = { range: true }) { - if (context.type === 'uri' || context.type === 'scm-states') { + if (context.type === 'uris' || context.type === 'scm-states') { args = { ...args, range: false }; } else if (isCommandViewContextWithCommit(context)) {