From 9f0199efae7d303093662773089c70a06d05b170 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Sat, 18 Aug 2018 22:57:46 -0400 Subject: [PATCH] Fixes #477 - Waits for the git extension to load when getting the git path --- CHANGELOG.md | 4 ++++ src/extension.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 58526a8..26bc080 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [Unreleased] +### Fixed +- Fixes [#477](https://github.com/eamodio/vscode-gitlens/issues/477) - Can't load any GitLens features or UI + ## [8.5.5] - 2018-08-18 ### Added - 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) diff --git a/src/extension.ts b/src/extension.ts index 42a6dd4..cd5f67c 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -57,7 +57,7 @@ export async function activate(context: ExtensionContext) { try { const gitExtension = extensions.getExtension('vscode.git'); if (gitExtension !== undefined) { - gitPath = await (gitExtension.exports as GitApi).getGitPath(); + gitPath = await ((await gitExtension.activate()) as GitApi).getGitPath(); } } catch {}