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

Commit

Permalink
fix: use startLine instead of line in browse cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
dukky committed Sep 17, 2020
1 parent 1c5b65c commit 72a34f9
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 72a34f9

Please sign in to comment.