We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88d74b1 commit 6bcf813Copy full SHA for 6bcf813
1 file changed
src/gitExtension.ts
@@ -37,5 +37,9 @@ export function getGitExtension() {
37
const vscodeGit = vscode.extensions.getExtension<GitExtension>("vscode.git");
38
const gitExtension = vscodeGit && vscodeGit.exports;
39
40
- return gitExtension && gitExtension.getAPI(1);
+ if (gitExtension) {
41
+ gitExtension.getAPI(1);
42
+ }
43
+
44
+ throw new Error("Could not get Git extension");
45
}
0 commit comments