Skip to content

Commit 51570c3

Browse files
authored
Remove obsolete config settings (#2097)
1 parent 403e893 commit 51570c3

File tree

2 files changed

+1
-49
lines changed

2 files changed

+1
-49
lines changed

extensions/ql-vscode/src/config.ts

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -478,48 +478,6 @@ export const NO_CACHE_AST_VIEWER = new Setting(
478478
// Settings for variant analysis
479479
const VARIANT_ANALYSIS_SETTING = new Setting("variantAnalysis", ROOT_SETTING);
480480

481-
/**
482-
* Lists of GitHub repositories that you want to query remotely via the "Run Variant Analysis" command.
483-
* Note: This command is only available for internal users.
484-
*
485-
* This setting should be a JSON object where each key is a user-specified name (string),
486-
* and the value is an array of GitHub repositories (of the form `<owner>/<repo>`).
487-
*/
488-
const REMOTE_REPO_LISTS = new Setting(
489-
"repositoryLists",
490-
VARIANT_ANALYSIS_SETTING,
491-
);
492-
493-
export function getRemoteRepositoryLists():
494-
| Record<string, string[]>
495-
| undefined {
496-
return REMOTE_REPO_LISTS.getValue<Record<string, string[]>>() || undefined;
497-
}
498-
499-
export async function setRemoteRepositoryLists(
500-
lists: Record<string, string[]> | undefined,
501-
) {
502-
await REMOTE_REPO_LISTS.updateValue(lists, ConfigurationTarget.Global);
503-
}
504-
505-
/**
506-
* Path to a file that contains lists of GitHub repositories that you want to query remotely via
507-
* the "Run Variant Analysis" command.
508-
* Note: This command is only available for internal users.
509-
*
510-
* This setting should be a path to a JSON file that contains a JSON object where each key is a
511-
* user-specified name (string), and the value is an array of GitHub repositories
512-
* (of the form `<owner>/<repo>`).
513-
*/
514-
const REPO_LISTS_PATH = new Setting(
515-
"repositoryListsPath",
516-
VARIANT_ANALYSIS_SETTING,
517-
);
518-
519-
export function getRemoteRepositoryListsPath(): string | undefined {
520-
return REPO_LISTS_PATH.getValue<string>() || undefined;
521-
}
522-
523481
/**
524482
* The name of the "controller" repository that you want to use with the "Run Variant Analysis" command.
525483
* Note: This command is only available for internal users.

extensions/ql-vscode/test/vscode-tests/cli-integration/variant-analysis/variant-analysis-manager.test.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@ import {
1212
} from "vscode";
1313
import { CodeQLExtensionInterface } from "../../../../src/extension";
1414
import { extLogger } from "../../../../src/common";
15-
import {
16-
setRemoteControllerRepo,
17-
setRemoteRepositoryLists,
18-
} from "../../../../src/config";
15+
import { setRemoteControllerRepo } from "../../../../src/config";
1916
import * as ghApiClient from "../../../../src/variant-analysis/gh-api/gh-api-client";
2017
import * as ghActionsApiClient from "../../../../src/variant-analysis/gh-api/gh-actions-api-client";
2118
import * as fs from "fs-extra";
@@ -156,9 +153,6 @@ describe("Variant Analysis Manager", () => {
156153

157154
// always run in the vscode-codeql repo
158155
await setRemoteControllerRepo("github/vscode-codeql");
159-
await setRemoteRepositoryLists({
160-
"vscode-codeql": ["github/vscode-codeql"],
161-
});
162156

163157
// Only new version support `${workspace}` in qlpack.yml
164158
originalDeps = await fixWorkspaceReferences(

0 commit comments

Comments
 (0)