Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
Merge pull request #693 from dukky/dukky_fix_browse_selection
Browse files Browse the repository at this point in the history
fix: Browse command with Multi-Line selection
  • Loading branch information
KnisterPeter authored Sep 18, 2020
2 parents 1c5b65c + 72a34f9 commit 901141c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/browse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ export class BrowseCurrentFile extends TokenCommand {
}
const root = await this.git.getGitRoot(folder.uri);
const file = editor.document.fileName.substring(root.length);
const line = editor.selection.active.line;
const startLine = editor.selection.start.line;
const endLine = editor.selection.end.line;
const uri = vscode.Uri.parse(await this.workflowManager.getGithubFileUrl(folder.uri, file, line, endLine));
const uri = vscode.Uri.parse(await this.workflowManager.getGithubFileUrl(folder.uri, file, startLine, endLine));
vscode.commands.executeCommand('vscode.open', uri);
}
}
Expand Down

0 comments on commit 901141c

Please sign in to comment.