Skip to content

Commit

Permalink
fix: Fix mistake in bitbucket permalink location
Browse files Browse the repository at this point in the history
  • Loading branch information
Vasco-jofra committed Dec 4, 2024
1 parent 5e5ed2d commit c7e27f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/codeMarker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2510,7 +2510,7 @@ export class CodeMarker implements vscode.TreeDataProvider<TreeEntry> {
const remoteHost = URL.parse(gitRemote)?.hostname;
let permalink;
if (remoteHost === "bitbucket.org") {
const issueLocation = `#lines${location.startLine + 1}:${location.endLine + 1}`;
const issueLocation = `#lines-${location.startLine + 1}:${location.endLine + 1}`;
permalink = gitRemote + "/src/" + sha + "/" + location.path + issueLocation;
} else {
const issueLocation = `#L${location.startLine + 1}-L${location.endLine + 1}`;
Expand Down

0 comments on commit c7e27f1

Please sign in to comment.