From 0d0ad1a8b9feb5592ea90e77e75061ed23b8c521 Mon Sep 17 00:00:00 2001 From: Karl Burtram Date: Mon, 20 Sep 2021 17:58:56 -0700 Subject: [PATCH] Remove commented code block in git extension (#17116) * Remove commented code block in git extension * Add SQL CARBON EDIT tag --- extensions/git/src/main.ts | 64 +------------------------------------- 1 file changed, 1 insertion(+), 63 deletions(-) diff --git a/extensions/git/src/main.ts b/extensions/git/src/main.ts index 1421cdd5f3..2b4f57202b 100644 --- a/extensions/git/src/main.ts +++ b/extensions/git/src/main.ts @@ -191,66 +191,4 @@ export async function activate(context: ExtensionContext): Promise return result; } -/* {{SQL CARBON EDIT}} -async function checkGitv1(info: IGit): Promise { - const config = workspace.getConfiguration('git'); - const shouldIgnore = config.get('ignoreLegacyWarning') === true; - - if (shouldIgnore) { - return; - } - - if (!/^[01]/.test(info.version)) { - return; - } - - const update = localize('updateGit', "Update Git"); - const neverShowAgain = localize('neverShowAgain', "Don't Show Again"); - - const choice = await window.showWarningMessage( - localize('git20', "You seem to have git {0} installed. Code works best with git >= 2", info.version), - update, - neverShowAgain - ); - - if (choice === update) { - commands.executeCommand('vscode.open', Uri.parse('https://git-scm.com/')); - } else if (choice === neverShowAgain) { - await config.update('ignoreLegacyWarning', true, true); - } -} - -async function checkGitWindows(info: IGit): Promise { - if (!/^2\.(25|26)\./.test(info.version)) { - return; - } - - const config = workspace.getConfiguration('git'); - const shouldIgnore = config.get('ignoreWindowsGit27Warning') === true; - - if (shouldIgnore) { - return; - } - - const update = localize('updateGit', "Update Git"); - const neverShowAgain = localize('neverShowAgain', "Don't Show Again"); - const choice = await window.showWarningMessage( - localize('git2526', "There are known issues with the installed Git {0}. Please update to Git >= 2.27 for the git features to work correctly.", info.version), - update, - neverShowAgain - ); - - if (choice === update) { - commands.executeCommand('vscode.open', Uri.parse('https://git-scm.com/')); - } else if (choice === neverShowAgain) { - await config.update('ignoreWindowsGit27Warning', true, true); - } -} - -async function checkGitVersion(info: IGit): Promise { - await checkGitv1(info); - - if (process.platform === 'win32') { - await checkGitWindows(info); - } -}*/ +// {{SQL CARBON EDIT}} - delete unneeded functions at end of file