Skip to content

Commit 23e1715

Browse files
Move DistributionUpdateConfig to top level
1 parent 64d97aa commit 23e1715

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

extensions/ql-vscode/src/extension.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,12 @@ export interface CodeQLExtensionInterface {
211211
readonly dispose: () => void;
212212
}
213213

214+
interface DistributionUpdateConfig {
215+
isUserInitiated: boolean;
216+
shouldDisplayMessageWhenNoUpdates: boolean;
217+
allowAutoUpdating: boolean;
218+
}
219+
214220
// This is the minimum version of vscode that we _want_ to support. We want to update the language server library, but that
215221
// requires 1.67 or later. If we change the minimum version in the package.json, then anyone on an older version of vscode
216222
// silently be unable to upgrade. So, the solution is to first bump the minimum version here and release. Then
@@ -267,12 +273,6 @@ export async function activate(
267273
// Checking the vscode version should not block extension activation.
268274
void assertVSCodeVersionGreaterThan(MIN_VERSION, ctx);
269275

270-
interface DistributionUpdateConfig {
271-
isUserInitiated: boolean;
272-
shouldDisplayMessageWhenNoUpdates: boolean;
273-
allowAutoUpdating: boolean;
274-
}
275-
276276
async function installOrUpdateDistributionWithProgressTitle(
277277
progressTitle: string,
278278
config: DistributionUpdateConfig,

0 commit comments

Comments
 (0)