Browse Source

Only await if we need to

main
Eric Amodio 6 years ago
parent
commit
521644109d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/git/gitService.ts

+ 1
- 1
src/git/gitService.ts View File

@ -1888,7 +1888,7 @@ export class GitService implements Disposable {
try {
const gitExtension = extensions.getExtension('vscode.git');
if (gitExtension !== undefined) {
const gitApi = ((await gitExtension.activate()) as GitExtension).getAPI(1);
const gitApi = ((gitExtension.isActive ? gitExtension.exports : await gitExtension.activate()) as GitExtension).getAPI(1);
gitPath = gitApi.git.path;
}
}

Loading…
Cancel
Save