Move shouldUpdateOnNextActivationKey to top level

This commit is contained in:
Robert
2023-03-14 17:30:49 +00:00
parent 23e1715c4a
commit 82f4941415

View File

@@ -217,6 +217,8 @@ interface DistributionUpdateConfig {
allowAutoUpdating: boolean;
}
const shouldUpdateOnNextActivationKey = "shouldUpdateOnNextActivation";
// This is the minimum version of vscode that we _want_ to support. We want to update the language server library, but that
// requires 1.67 or later. If we change the minimum version in the package.json, then anyone on an older version of vscode
// silently be unable to upgrade. So, the solution is to first bump the minimum version here and release. Then
@@ -262,8 +264,6 @@ export async function activate(
ctx,
);
const shouldUpdateOnNextActivationKey = "shouldUpdateOnNextActivation";
registerErrorStubs([checkForUpdatesCommand], (command) => async () => {
void showAndLogErrorMessage(
`Can't execute ${command}: waiting to finish loading CodeQL CLI.`,