Skip to content

Commit

Permalink
fixes #39077
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomoreno committed Nov 24, 2017
1 parent 89b158e commit 8feee8e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions extensions/git/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,17 @@ async function _activate(context: ExtensionContext, disposables: Disposable[]):
throw err;
}

console.warn(err.message);
outputChannel.appendLine(err.message);
outputChannel.show();

const config = workspace.getConfiguration('git');
const shouldIgnore = config.get<boolean>('ignoreMissingGitWarning') === true;

if (shouldIgnore) {
return;
}

console.warn(err.message);
outputChannel.appendLine(err.message);
outputChannel.show();

const download = localize('downloadgit', "Download Git");
const neverShowAgain = localize('neverShowAgain', "Don't show again");
const choice = await window.showWarningMessage(
Expand Down

0 comments on commit 8feee8e

Please sign in to comment.