Move shouldUpdateOnNextActivationKey to top level
This commit is contained in:
@@ -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.`,
|
||||
|
||||
Reference in New Issue
Block a user