mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-14 10:03:15 -05:00
Fixes a slew of issues because of the Fix for #1
This commit is contained in:
@@ -68,7 +68,11 @@ export default class GitBlameCodeLensProvider implements CodeLensProvider {
|
||||
lens.command = {
|
||||
title: `Compare with Working Tree`,
|
||||
command: Commands.DiffWithWorking,
|
||||
arguments: [Uri.file(lens.fileName), lens.commit.sha, lens.commit.uri, lens.range.start.line]
|
||||
arguments: [
|
||||
Uri.file(lens.fileName),
|
||||
lens.commit.sha,
|
||||
lens.commit.uri,
|
||||
lens.range.start.line]
|
||||
};
|
||||
return Promise.resolve(lens);
|
||||
}
|
||||
@@ -77,7 +81,14 @@ export default class GitBlameCodeLensProvider implements CodeLensProvider {
|
||||
lens.command = {
|
||||
title: `Compare with Previous (${lens.commit.previousSha})`,
|
||||
command: Commands.DiffWithPrevious,
|
||||
arguments: [Uri.file(lens.fileName), lens.commit.sha, lens.commit.uri, lens.commit.previousSha, lens.commit.previousUri, lens.range.start.line]
|
||||
arguments: [
|
||||
Uri.file(lens.fileName),
|
||||
lens.commit.repoPath,
|
||||
lens.commit.sha,
|
||||
lens.commit.uri,
|
||||
lens.commit.previousSha,
|
||||
lens.commit.previousUri,
|
||||
lens.range.start.line]
|
||||
};
|
||||
return Promise.resolve(lens);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user