Skip to content

Commit

Permalink
Fixes copy remote url not including line range
Browse files Browse the repository at this point in the history
  • Loading branch information
eamodio committed May 23, 2019
1 parent 7db7f44 commit 1392fc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/copyRemoteFileUrlToClipboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 1392fc2

Please sign in to comment.