This commit is contained in:
Joao Moreno
2017-11-13 20:20:47 +01:00
parent fa592ef424
commit 4e172cd197

View File

@@ -66,7 +66,13 @@ export function activate(context: ExtensionContext): any {
context.subscriptions.push(new Disposable(() => Disposable.from(...disposables).dispose()));
init(context, disposables)
.catch(err => console.error(err));
.catch(err => {
if (/Git installation not found/.test(err.message || '')) {
console.warn(localize('notfound', "Git not found. You can configure its location with the `git.path` configuration setting."));
} else {
console.error(err);
}
});
}
async function checkGitVersion(info: IGit): Promise<void> {