Skip to content

Commit 9f0199e

Browse files
committed
Fixes #477 - Waits for the git extension to load when getting the git path
1 parent 4cbae50 commit 9f0199e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
## [Unreleased]
8+
### Fixed
9+
- Fixes [#477](https://github.com/eamodio/vscode-gitlens/issues/477) - Can't load any GitLens features or UI
10+
711
## [8.5.5] - 2018-08-18
812
### Added
913
- Adds *Copy Remote File Url to Clipboard* (`gitlens.copyRemoteFileUrlToClipboard`) command — copies the remote url of the current file and line to the clipboard — closes [#467](https://github.com/eamodio/vscode-gitlens/issues/467)

src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export async function activate(context: ExtensionContext) {
5757
try {
5858
const gitExtension = extensions.getExtension('vscode.git');
5959
if (gitExtension !== undefined) {
60-
gitPath = await (gitExtension.exports as GitApi).getGitPath();
60+
gitPath = await ((await gitExtension.activate()) as GitApi).getGitPath();
6161
}
6262
}
6363
catch {}

0 commit comments

Comments
 (0)