diff --git a/extensions/git/src/main.ts b/extensions/git/src/main.ts index 4b4e8502fc54b442a70a9f6abd45b089012c26d5..9a9f9ead68817ca8879e0fe436a730d8cdf5f8bc 100644 --- a/extensions/git/src/main.ts +++ b/extensions/git/src/main.ts @@ -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 {