提交 4e172cd1 编写于 作者: J Joao Moreno

fixes #38244

上级 fa592ef4
......@@ -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> {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册