diff --git a/extensions/ql-vscode/src/config.ts b/extensions/ql-vscode/src/config.ts index 849f3aa1833..b32519a1a68 100644 --- a/extensions/ql-vscode/src/config.ts +++ b/extensions/ql-vscode/src/config.ts @@ -478,48 +478,6 @@ export const NO_CACHE_AST_VIEWER = new Setting( // Settings for variant analysis const VARIANT_ANALYSIS_SETTING = new Setting("variantAnalysis", ROOT_SETTING); -/** - * Lists of GitHub repositories that you want to query remotely via the "Run Variant Analysis" command. - * Note: This command is only available for internal users. - * - * This setting should be a JSON object where each key is a user-specified name (string), - * and the value is an array of GitHub repositories (of the form `/`). - */ -const REMOTE_REPO_LISTS = new Setting( - "repositoryLists", - VARIANT_ANALYSIS_SETTING, -); - -export function getRemoteRepositoryLists(): - | Record - | undefined { - return REMOTE_REPO_LISTS.getValue>() || undefined; -} - -export async function setRemoteRepositoryLists( - lists: Record | undefined, -) { - await REMOTE_REPO_LISTS.updateValue(lists, ConfigurationTarget.Global); -} - -/** - * Path to a file that contains lists of GitHub repositories that you want to query remotely via - * the "Run Variant Analysis" command. - * Note: This command is only available for internal users. - * - * This setting should be a path to a JSON file that contains a JSON object where each key is a - * user-specified name (string), and the value is an array of GitHub repositories - * (of the form `/`). - */ -const REPO_LISTS_PATH = new Setting( - "repositoryListsPath", - VARIANT_ANALYSIS_SETTING, -); - -export function getRemoteRepositoryListsPath(): string | undefined { - return REPO_LISTS_PATH.getValue() || undefined; -} - /** * The name of the "controller" repository that you want to use with the "Run Variant Analysis" command. * Note: This command is only available for internal users. diff --git a/extensions/ql-vscode/test/vscode-tests/cli-integration/variant-analysis/variant-analysis-manager.test.ts b/extensions/ql-vscode/test/vscode-tests/cli-integration/variant-analysis/variant-analysis-manager.test.ts index b97b62d5342..3f15acb0497 100644 --- a/extensions/ql-vscode/test/vscode-tests/cli-integration/variant-analysis/variant-analysis-manager.test.ts +++ b/extensions/ql-vscode/test/vscode-tests/cli-integration/variant-analysis/variant-analysis-manager.test.ts @@ -12,10 +12,7 @@ import { } from "vscode"; import { CodeQLExtensionInterface } from "../../../../src/extension"; import { extLogger } from "../../../../src/common"; -import { - setRemoteControllerRepo, - setRemoteRepositoryLists, -} from "../../../../src/config"; +import { setRemoteControllerRepo } from "../../../../src/config"; import * as ghApiClient from "../../../../src/variant-analysis/gh-api/gh-api-client"; import * as ghActionsApiClient from "../../../../src/variant-analysis/gh-api/gh-actions-api-client"; import * as fs from "fs-extra"; @@ -156,9 +153,6 @@ describe("Variant Analysis Manager", () => { // always run in the vscode-codeql repo await setRemoteControllerRepo("github/vscode-codeql"); - await setRemoteRepositoryLists({ - "vscode-codeql": ["github/vscode-codeql"], - }); // Only new version support `${workspace}` in qlpack.yml originalDeps = await fixWorkspaceReferences(