From b082455604622f7cb513132b5710588b83b5b98d Mon Sep 17 00:00:00 2001 From: Robert Date: Tue, 2 Jan 2024 16:56:20 +0000 Subject: [PATCH] Remove ownerName and repositoryName from DistributionConfig --- extensions/ql-vscode/src/codeql-cli/distribution.ts | 8 ++------ extensions/ql-vscode/src/config.ts | 2 -- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/extensions/ql-vscode/src/codeql-cli/distribution.ts b/extensions/ql-vscode/src/codeql-cli/distribution.ts index 804528331..88789df20 100644 --- a/extensions/ql-vscode/src/codeql-cli/distribution.ts +++ b/extensions/ql-vscode/src/codeql-cli/distribution.ts @@ -512,9 +512,7 @@ class ExtensionSpecificDistributionManager { } private get distributionOwnerName(): string { - if (this.config.ownerName) { - return this.config.ownerName; - } else if (this.config.channel === "nightly") { + if (this.config.channel === "nightly") { return NIGHTLY_DISTRIBUTION_OWNER_NAME; } else { return DEFAULT_DISTRIBUTION_OWNER_NAME; @@ -522,9 +520,7 @@ class ExtensionSpecificDistributionManager { } private get distributionRepositoryName(): string { - if (this.config.repositoryName) { - return this.config.repositoryName; - } else if (this.config.channel === "nightly") { + if (this.config.channel === "nightly") { return NIGHTLY_DISTRIBUTION_REPOSITORY_NAME; } else { return DEFAULT_DISTRIBUTION_REPOSITORY_NAME; diff --git a/extensions/ql-vscode/src/config.ts b/extensions/ql-vscode/src/config.ts index cf018a186..21fcb0a93 100644 --- a/extensions/ql-vscode/src/config.ts +++ b/extensions/ql-vscode/src/config.ts @@ -119,8 +119,6 @@ export interface DistributionConfig { updateCustomCodeQlPath: (newPath: string | undefined) => Promise; includePrerelease: boolean; personalAccessToken?: string; - ownerName?: string; - repositoryName?: string; channel: CLIChannel; onDidChangeConfiguration?: Event; }