Skip to content

Commit f76100b

Browse files
committed
Stop using constants for deprecated keys
1 parent 13e1b6c commit f76100b

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

extensions/ql-vscode/src/codeql-cli/distribution.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -326,11 +326,11 @@ class ExtensionSpecificDistributionManager {
326326

327327
this.distributionState = {
328328
folderIndex: this.extensionContext.globalState.get(
329-
ExtensionSpecificDistributionManager._currentDistributionFolderIndexStateKey,
329+
"distributionFolderIndex",
330330
0,
331331
),
332332
release: (this.extensionContext.globalState.get(
333-
ExtensionSpecificDistributionManager._installedReleaseStateKey,
333+
"distributionRelease",
334334
) ?? null) as Release | null,
335335
};
336336

@@ -710,9 +710,6 @@ class ExtensionSpecificDistributionManager {
710710
}
711711

712712
private static readonly _currentDistributionFolderBaseName = "distribution";
713-
private static readonly _currentDistributionFolderIndexStateKey =
714-
"distributionFolderIndex";
715-
private static readonly _installedReleaseStateKey = "distributionRelease";
716713
private static readonly _codeQlExtractedFolderName = "codeql";
717714
private static readonly _distributionStateFilename = "distribution.json";
718715
}

0 commit comments

Comments
 (0)