We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af6c35b commit 75054abCopy full SHA for 75054ab
1 file changed
extension.js
@@ -87,7 +87,6 @@ async function getRepositoryDiff(api) {
87
}
88
const repo = api.repositories[0];
89
90
- // Prefer the API methods when available.
91
if (typeof repo.diffWithHEAD === "function") {
92
const diff = await repo.diffWithHEAD();
93
if (typeof diff === "string") {
@@ -101,7 +100,6 @@ async function getRepositoryDiff(api) {
101
100
102
103
104
- // Fallback to shelling out to git in the workspace.
105
const cwd = repo.rootUri?.fsPath;
106
const diff = await gitDiffFallback(cwd || process.cwd(), true);
107
return { repo, diff };
0 commit comments