Skip to content
This repository was archived by the owner on May 20, 2026. It is now read-only.

Commit 9c9613b

Browse files
committed
Rename VSC override config namespace
1 parent b2e2faf commit 9c9613b

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4023,7 +4023,7 @@
40234023
"experimental"
40244024
]
40254025
},
4026-
"github.copilot.chat.debug.vscModelOverride": {
4026+
"github.copilot.chat.customization.vscModelOverride": {
40274027
"type": [
40284028
"string",
40294029
"null"
@@ -4036,7 +4036,7 @@
40364036
"D"
40374037
],
40384038
"default": null,
4039-
"markdownDescription": "%github.copilot.config.debug.vscModelOverride%",
4039+
"markdownDescription": "%github.copilot.config.customization.vscModelOverride%",
40404040
"tags": [
40414041
"advanced",
40424042
"experimental"

package.nls.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@
355355
"github.copilot.config.completionsFetcher": "Sets the fetcher used for the inline completions.",
356356
"github.copilot.config.nesFetcher": "Sets the fetcher used for the next edit suggestions.",
357357
"github.copilot.config.debug.overrideChatEngine": "Override the chat model. This allows you to test with different models.\n\n**Note**: This is an advanced debugging setting and should not be used while self-hosting as it may lead to a different experience compared to end-users.",
358-
"github.copilot.config.debug.vscModelOverride": "Override the hidden VSC model family classification used for prompt routing and capability checks. When set to `A`, `B`, `C`, or `D`, only that family returns `true` and the others return `false`. Set to `null` to use normal detection.",
358+
"github.copilot.config.customization.vscModelOverride": "Override the hidden VSC model family classification used for prompt routing and capability checks. When set to `A`, `B`, `C`, or `D`, only that family returns `true` and the others return `false`. Set to `null` to use normal detection.",
359359
"github.copilot.config.projectLabels.expanded": "Use the expanded format for project labels in prompts.",
360360
"github.copilot.config.projectLabels.chat": "Add project labels in chat requests.",
361361
"github.copilot.config.projectLabels.inline": "Add project labels in inline edit requests.",

src/extension/prompt/node/chatMLFetcher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ export class ChatMLFetcherImpl extends AbstractChatMLFetcher {
180180
uiKind: ChatLocation.toString(location)
181181
});
182182

183-
const modelOverride = this._configurationService.getConfig(ConfigKey.Advanced.DebugVSCModelOverride);
183+
const modelOverride = this._configurationService.getConfig(ConfigKey.Advanced.CustomizationVSCModelOverride);
184184
const customMetadata = modelOverride
185185
? {
186186
...opts.customMetadata,

src/extension/prompts/node/agent/promptRegistry.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,12 @@ export const PromptRegistry = new class {
107107
instantiationService: IInstantiationService,
108108
endpoint: IChatEndpoint,
109109
): Promise<AgentPromptCustomizations> {
110-
const modelOverride = instantiationService.invokeFunction(accessor => accessor.get(IConfigurationService).getConfig(ConfigKey.Advanced.DebugVSCModelOverride));
110+
const modelOverride = instantiationService.invokeFunction(accessor => accessor.get(IConfigurationService).getConfig(ConfigKey.Advanced.CustomizationVSCModelOverride));
111111
const promptResolverCtor = await this.getPromptResolver(endpoint, modelOverride);
112112
const agentPrompt = promptResolverCtor ? instantiationService.createInstance(promptResolverCtor) : undefined;
113113

114114
if (modelOverride) {
115-
instantiationService.invokeFunction(accessor => accessor.get(ILogService).info(`[PromptRegistry] Using debug VSC model override '${modelOverride}' with resolver '${promptResolverCtor?.name ?? 'default'}' for endpoint family '${endpoint.family}'`));
115+
instantiationService.invokeFunction(accessor => accessor.get(ILogService).info(`[PromptRegistry] Using VSC model override '${modelOverride}' with resolver '${promptResolverCtor?.name ?? 'default'}' for endpoint family '${endpoint.family}'`));
116116
}
117117

118118
return {

src/platform/configuration/common/configurationService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ export namespace ConfigKey {
689689
export const DebugGitHubAuthFailWith = defineSetting<'NotAuthorized' | 'RequestFailed' | 'ParseFailed' | 'HTTP401' | 'RateLimited' | 'GitHubLoginFailed' | null>('chat.debug.githubAuthFailWith', ConfigType.Simple, null);
690690

691691
/** Override which VSC model variant is active. Only one can be true; when set, the others return false. */
692-
export const DebugVSCModelOverride = defineSetting<'A' | 'B' | 'C' | 'D' | null>('chat.debug.vscModelOverride', ConfigType.Simple, null, vNullable(vEnum('A', 'B', 'C', 'D')));
692+
export const CustomizationVSCModelOverride = defineSetting<'A' | 'B' | 'C' | 'D' | null>('chat.customization.vscModelOverride', ConfigType.Simple, null, vNullable(vEnum('A', 'B', 'C', 'D')));
693693

694694
// Agent debug logging settings — fileLogging.enabled is the canonical toggle
695695
/** @deprecated Use ChatDebugFileLogging instead. Kept during experiment transition. */

0 commit comments

Comments
 (0)