Skip to content

Commit ada5f51

Browse files
Move codeQlVersionRange to top level
1 parent 82f4941 commit ada5f51

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

extensions/ql-vscode/src/extension.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,8 @@ interface DistributionUpdateConfig {
219219

220220
const shouldUpdateOnNextActivationKey = "shouldUpdateOnNextActivation";
221221

222+
const codeQlVersionRange = DEFAULT_DISTRIBUTION_VERSION_RANGE;
223+
222224
// This is the minimum version of vscode that we _want_ to support. We want to update the language server library, but that
223225
// requires 1.67 or later. If we change the minimum version in the package.json, then anyone on an older version of vscode
224226
// silently be unable to upgrade. So, the solution is to first bump the minimum version here and release. Then
@@ -257,7 +259,6 @@ export async function activate(
257259
);
258260

259261
ctx.subscriptions.push(distributionConfigListener);
260-
const codeQlVersionRange = DEFAULT_DISTRIBUTION_VERSION_RANGE;
261262
const distributionManager = new DistributionManager(
262263
distributionConfigListener,
263264
codeQlVersionRange,

0 commit comments

Comments
 (0)