@vscode/chat-lib 0.1.1-4 → 0.1.1-6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/_internal/extension/inlineEdits/common/delayer.js +2 -2
- package/dist/src/_internal/extension/inlineEdits/common/delayer.js.map +1 -1
- package/dist/src/_internal/extension/inlineEdits/node/nextEditCache.js +1 -1
- package/dist/src/_internal/extension/inlineEdits/node/nextEditCache.js.map +1 -1
- package/dist/src/_internal/extension/inlineEdits/node/nextEditProvider.js +8 -8
- package/dist/src/_internal/extension/inlineEdits/node/nextEditProvider.js.map +1 -1
- package/dist/src/_internal/extension/inlineEdits/node/nextEditProviderTelemetry.js +2 -2
- package/dist/src/_internal/extension/inlineEdits/node/nextEditProviderTelemetry.js.map +1 -1
- package/dist/src/_internal/extension/prompt/node/chatMLFetcher.d.ts.map +1 -1
- package/dist/src/_internal/extension/prompt/node/chatMLFetcher.js +5 -5
- package/dist/src/_internal/extension/prompt/node/chatMLFetcher.js.map +1 -1
- package/dist/src/_internal/extension/xtab/node/xtabEndpoint.js +2 -2
- package/dist/src/_internal/extension/xtab/node/xtabEndpoint.js.map +1 -1
- package/dist/src/_internal/extension/xtab/node/xtabProvider.d.ts.map +1 -1
- package/dist/src/_internal/extension/xtab/node/xtabProvider.js +51 -48
- package/dist/src/_internal/extension/xtab/node/xtabProvider.js.map +1 -1
- package/dist/src/_internal/platform/configuration/common/configurationService.d.ts +23 -31
- package/dist/src/_internal/platform/configuration/common/configurationService.d.ts.map +1 -1
- package/dist/src/_internal/platform/configuration/common/configurationService.js +208 -234
- package/dist/src/_internal/platform/configuration/common/configurationService.js.map +1 -1
- package/dist/src/_internal/platform/endpoint/common/capiClient.d.ts +1 -1
- package/dist/src/_internal/platform/endpoint/common/capiClient.d.ts.map +1 -1
- package/dist/src/_internal/platform/endpoint/common/capiClient.js +2 -2
- package/dist/src/_internal/platform/endpoint/common/capiClient.js.map +1 -1
- package/dist/src/_internal/platform/endpoint/common/endpointProvider.d.ts +2 -1
- package/dist/src/_internal/platform/endpoint/common/endpointProvider.d.ts.map +1 -1
- package/dist/src/_internal/platform/endpoint/common/endpointProvider.js +1 -0
- package/dist/src/_internal/platform/endpoint/common/endpointProvider.js.map +1 -1
- package/dist/src/_internal/platform/endpoint/node/capiClientImpl.js +1 -1
- package/dist/src/_internal/platform/endpoint/node/capiClientImpl.js.map +1 -1
- package/dist/src/_internal/platform/endpoint/node/chatEndpoint.d.ts +2 -0
- package/dist/src/_internal/platform/endpoint/node/chatEndpoint.d.ts.map +1 -1
- package/dist/src/_internal/platform/endpoint/node/chatEndpoint.js +19 -2
- package/dist/src/_internal/platform/endpoint/node/chatEndpoint.js.map +1 -1
- package/dist/src/_internal/platform/endpoint/node/messagesApi.d.ts +65 -0
- package/dist/src/_internal/platform/endpoint/node/messagesApi.d.ts.map +1 -0
- package/dist/src/_internal/platform/endpoint/node/messagesApi.js +397 -0
- package/dist/src/_internal/platform/endpoint/node/messagesApi.js.map +1 -0
- package/dist/src/_internal/platform/endpoint/node/responsesApi.js +1 -1
- package/dist/src/_internal/platform/endpoint/node/responsesApi.js.map +1 -1
- package/dist/src/_internal/platform/github/common/githubAPI.d.ts.map +1 -1
- package/dist/src/_internal/platform/github/common/githubAPI.js +4 -1
- package/dist/src/_internal/platform/github/common/githubAPI.js.map +1 -1
- package/dist/src/_internal/platform/github/common/githubService.d.ts +6 -18
- package/dist/src/_internal/platform/github/common/githubService.d.ts.map +1 -1
- package/dist/src/_internal/platform/github/common/githubService.js +0 -25
- package/dist/src/_internal/platform/github/common/githubService.js.map +1 -1
- package/dist/src/_internal/platform/inlineEdits/common/statelessNextEditProvider.d.ts +6 -5
- package/dist/src/_internal/platform/inlineEdits/common/statelessNextEditProvider.d.ts.map +1 -1
- package/dist/src/_internal/platform/inlineEdits/common/statelessNextEditProvider.js +7 -4
- package/dist/src/_internal/platform/inlineEdits/common/statelessNextEditProvider.js.map +1 -1
- package/dist/src/_internal/platform/networking/common/fetch.d.ts +10 -1
- package/dist/src/_internal/platform/networking/common/fetch.d.ts.map +1 -1
- package/dist/src/_internal/platform/networking/common/fetch.js.map +1 -1
- package/dist/src/_internal/platform/networking/common/networking.d.ts +7 -2
- package/dist/src/_internal/platform/networking/common/networking.d.ts.map +1 -1
- package/dist/src/_internal/platform/networking/common/networking.js.map +1 -1
- package/dist/src/_internal/platform/notebook/common/alternativeContent.js +1 -1
- package/dist/src/_internal/platform/notebook/common/alternativeContent.js.map +1 -1
- package/dist/src/main.d.ts.map +1 -1
- package/dist/src/main.js +2 -2
- package/dist/src/main.js.map +1 -1
- package/dist/src/package.json +250 -85
- package/package.json +3 -2
|
@@ -197,13 +197,6 @@ var ConfigValueValidators;
|
|
|
197
197
|
}
|
|
198
198
|
ConfigValueValidators.isDefaultValueWithTeamAndInternalValue = isDefaultValueWithTeamAndInternalValue;
|
|
199
199
|
})(ConfigValueValidators || (exports.ConfigValueValidators = ConfigValueValidators = {}));
|
|
200
|
-
/**
|
|
201
|
-
* Indicates that a setting can not be configured by external users
|
|
202
|
-
*/
|
|
203
|
-
const INTERNAL_RESTRICTED = {
|
|
204
|
-
internal: true,
|
|
205
|
-
valueIgnoredForExternals: true,
|
|
206
|
-
};
|
|
207
200
|
let packageJsonDefaults = undefined;
|
|
208
201
|
function getPackageJsonDefaults() {
|
|
209
202
|
if (!packageJsonDefaults) {
|
|
@@ -275,33 +268,23 @@ class ConfigurationMigrationRegistryImpl {
|
|
|
275
268
|
}
|
|
276
269
|
}
|
|
277
270
|
exports.ConfigurationMigrationRegistry = new ConfigurationMigrationRegistryImpl();
|
|
278
|
-
function
|
|
271
|
+
function defineSetting(key, configType, defaultValue, validator, options, expOptions) {
|
|
272
|
+
if (configType === 1 /* ConfigType.ExperimentBased */) {
|
|
273
|
+
const value = { ...toBaseConfig(key, defaultValue, options), configType: 1 /* ConfigType.ExperimentBased */, experimentName: expOptions?.experimentName, validator };
|
|
274
|
+
if (value.advancedSubKey) {
|
|
275
|
+
// This is a `github.copilot.advanced.*` setting
|
|
276
|
+
throw new errors_1.BugIndicatingError('Shared settings cannot be experiment based');
|
|
277
|
+
}
|
|
278
|
+
exports.globalConfigRegistry.registerConfig(value);
|
|
279
|
+
return value;
|
|
280
|
+
}
|
|
279
281
|
const value = { ...toBaseConfig(key, defaultValue, options), configType: 0 /* ConfigType.Simple */, validator };
|
|
280
282
|
exports.globalConfigRegistry.registerConfig(value);
|
|
281
283
|
return value;
|
|
282
284
|
}
|
|
283
|
-
function
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
return value;
|
|
287
|
-
}
|
|
288
|
-
/**
|
|
289
|
-
* Will define a setting which will be backed by an experiment. The experiment variable will be:
|
|
290
|
-
* ```
|
|
291
|
-
* config.github.copilot.${key}
|
|
292
|
-
*
|
|
293
|
-
* e.g.
|
|
294
|
-
* config.github.copilot.chat.advanced.inlineEdits.internalRollout
|
|
295
|
-
* ```
|
|
296
|
-
*/
|
|
297
|
-
function defineExpSetting(key, defaultValue, options, expOptions) {
|
|
298
|
-
const value = { ...toBaseConfig(key, defaultValue, options), configType: 1 /* ConfigType.ExperimentBased */, experimentName: expOptions?.experimentName };
|
|
299
|
-
if (value.advancedSubKey) {
|
|
300
|
-
// This is a `github.copilot.advanced.*` setting
|
|
301
|
-
throw new errors_1.BugIndicatingError('Shared settings cannot be experiment based');
|
|
302
|
-
}
|
|
303
|
-
exports.globalConfigRegistry.registerConfig(value);
|
|
304
|
-
return value;
|
|
285
|
+
function defineTeamInternalSetting(key, configType, defaultValue, validator, options, expOptions) {
|
|
286
|
+
options = { ...options, internal: true, valueIgnoredForExternals: true };
|
|
287
|
+
return configType === 0 /* ConfigType.Simple */ ? defineSetting(key, configType, defaultValue, validator, options) : defineSetting(key, configType, defaultValue, validator, options, expOptions);
|
|
305
288
|
}
|
|
306
289
|
function migrateSetting(newKey, oldKey) {
|
|
307
290
|
exports.ConfigurationMigrationRegistry.registerConfigurationMigrations([{
|
|
@@ -316,11 +299,11 @@ function migrateSetting(newKey, oldKey) {
|
|
|
316
299
|
}
|
|
317
300
|
function defineAndMigrateSetting(oldKey, newKey, defaultValue, options) {
|
|
318
301
|
migrateSetting(newKey, oldKey);
|
|
319
|
-
return defineSetting(newKey, defaultValue, { ...options, oldKey });
|
|
302
|
+
return defineSetting(newKey, 0 /* ConfigType.Simple */, defaultValue, undefined, { ...options, oldKey });
|
|
320
303
|
}
|
|
321
304
|
function defineAndMigrateExpSetting(oldKey, newKey, defaultValue, options, expOptions) {
|
|
322
305
|
migrateSetting(newKey, oldKey);
|
|
323
|
-
return
|
|
306
|
+
return defineSetting(newKey, 1 /* ConfigType.ExperimentBased */, defaultValue, undefined, { ...options, oldKey }, expOptions);
|
|
324
307
|
}
|
|
325
308
|
// Max CAPI tool count limit
|
|
326
309
|
exports.HARD_TOOL_LIMIT = 128;
|
|
@@ -346,255 +329,246 @@ var ConfigKey;
|
|
|
346
329
|
let Shared;
|
|
347
330
|
(function (Shared) {
|
|
348
331
|
/** Allows for overriding the base domain we use for making requests to the CAPI. This helps CAPI devs develop against a local instance. */
|
|
349
|
-
Shared.DebugOverrideProxyUrl = defineSetting('advanced.debug.overrideProxyUrl', undefined);
|
|
350
|
-
Shared.DebugOverrideCAPIUrl = defineSetting('advanced.debug.overrideCapiUrl', undefined);
|
|
351
|
-
Shared.DebugUseNodeFetchFetcher = defineSetting('advanced.debug.useNodeFetchFetcher', true);
|
|
352
|
-
Shared.DebugUseNodeFetcher = defineSetting('advanced.debug.useNodeFetcher', false);
|
|
353
|
-
Shared.DebugUseElectronFetcher = defineSetting('advanced.debug.useElectronFetcher', true);
|
|
354
|
-
Shared.AuthProvider = defineSetting('advanced.authProvider', AuthProviderId.GitHub);
|
|
355
|
-
Shared.AuthPermissions = defineSetting('advanced.authPermissions', AuthPermissionMode.Default);
|
|
332
|
+
Shared.DebugOverrideProxyUrl = defineSetting('advanced.debug.overrideProxyUrl', 0 /* ConfigType.Simple */, undefined);
|
|
333
|
+
Shared.DebugOverrideCAPIUrl = defineSetting('advanced.debug.overrideCapiUrl', 0 /* ConfigType.Simple */, undefined);
|
|
334
|
+
Shared.DebugUseNodeFetchFetcher = defineSetting('advanced.debug.useNodeFetchFetcher', 0 /* ConfigType.Simple */, true);
|
|
335
|
+
Shared.DebugUseNodeFetcher = defineSetting('advanced.debug.useNodeFetcher', 0 /* ConfigType.Simple */, false);
|
|
336
|
+
Shared.DebugUseElectronFetcher = defineSetting('advanced.debug.useElectronFetcher', 0 /* ConfigType.Simple */, true);
|
|
337
|
+
Shared.AuthProvider = defineSetting('advanced.authProvider', 0 /* ConfigType.Simple */, AuthProviderId.GitHub);
|
|
338
|
+
Shared.AuthPermissions = defineSetting('advanced.authPermissions', 0 /* ConfigType.Simple */, AuthPermissionMode.Default);
|
|
356
339
|
})(Shared = ConfigKey.Shared || (ConfigKey.Shared = {}));
|
|
357
340
|
/**
|
|
358
|
-
* Advanced
|
|
359
|
-
* These should only be in this list temporarily. Either should be made stable or removed.
|
|
341
|
+
* Advanced settings that are available for all users to configure.
|
|
360
342
|
*/
|
|
361
|
-
let
|
|
362
|
-
(function (
|
|
343
|
+
let Advanced;
|
|
344
|
+
(function (Advanced) {
|
|
363
345
|
/** Allows forcing a particular model.
|
|
364
346
|
* Note: this should not be used while self-hosting because it might lead to
|
|
365
347
|
* a fundamental different experience compared to our end-users.
|
|
366
348
|
*/
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
349
|
+
Advanced.DebugOverrideChatEngine = defineAndMigrateSetting('chat.advanced.debug.overrideChatEngine', 'chat.debug.overrideChatEngine', undefined);
|
|
350
|
+
Advanced.WorkspacePrototypeAdoCodeSearchEndpointOverride = defineAndMigrateSetting('chat.advanced.workspace.prototypeAdoCodeSearchEndpointOverride', 'chat.workspace.prototypeAdoCodeSearchEndpointOverride', '');
|
|
351
|
+
Advanced.FeedbackOnChange = defineAndMigrateSetting('chat.advanced.feedback.onChange', 'chat.feedback.onChange', false);
|
|
352
|
+
Advanced.ReviewIntent = defineAndMigrateSetting('chat.advanced.review.intent', 'chat.review.intent', false);
|
|
371
353
|
/** Enable the new notebook priorities experiment */
|
|
372
|
-
|
|
354
|
+
Advanced.NotebookSummaryExperimentEnabled = defineAndMigrateSetting('chat.advanced.notebook.summaryExperimentEnabled', 'chat.notebook.summaryExperimentEnabled', false);
|
|
373
355
|
/** Enable filtering variables by cell document symbols */
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
AdvancedExperimental.EnableClaudeCodeAgent = defineAndMigrateSetting('chat.advanced.claudeCode.enabled', 'chat.claudeCode.enabled', false);
|
|
394
|
-
})(AdvancedExperimental = ConfigKey.AdvancedExperimental || (ConfigKey.AdvancedExperimental = {}));
|
|
395
|
-
/**
|
|
396
|
-
* Advanced experimental settings that are available for all users to configure and controlled by experiments.
|
|
397
|
-
* These should only be in this list temporarily. Either should be made stable or removed.
|
|
398
|
-
*/
|
|
399
|
-
let AdvancedExperimentalExperiments;
|
|
400
|
-
(function (AdvancedExperimentalExperiments) {
|
|
356
|
+
Advanced.NotebookVariableFilteringEnabled = defineAndMigrateSetting('chat.advanced.notebook.variableFilteringEnabled', 'chat.notebook.variableFilteringEnabled', false);
|
|
357
|
+
Advanced.TerminalToDebuggerPatterns = defineAndMigrateSetting('chat.advanced.debugTerminalCommandPatterns', 'chat.debugTerminalCommandPatterns', []);
|
|
358
|
+
Advanced.WorkspaceRecordingEnabled = defineAndMigrateSetting('chat.advanced.localWorkspaceRecording.enabled', 'chat.localWorkspaceRecording.enabled', false);
|
|
359
|
+
Advanced.EditRecordingEnabled = defineAndMigrateSetting('chat.advanced.editRecording.enabled', 'chat.editRecording.enabled', false);
|
|
360
|
+
Advanced.CodeSearchAgentEnabled = defineAndMigrateSetting('chat.advanced.codesearch.agent.enabled', 'chat.codesearch.agent.enabled', true);
|
|
361
|
+
Advanced.AgentTemperature = defineAndMigrateSetting('chat.advanced.agent.temperature', 'chat.agent.temperature', undefined);
|
|
362
|
+
Advanced.EnableUserPreferences = defineAndMigrateSetting('chat.advanced.enableUserPreferences', 'chat.enableUserPreferences', false);
|
|
363
|
+
Advanced.SummarizeAgentConversationHistoryThreshold = defineAndMigrateSetting('chat.advanced.summarizeAgentConversationHistoryThreshold', 'chat.summarizeAgentConversationHistoryThreshold', undefined);
|
|
364
|
+
Advanced.AgentHistorySummarizationMode = defineAndMigrateSetting('chat.advanced.agentHistorySummarizationMode', 'chat.agentHistorySummarizationMode', undefined);
|
|
365
|
+
Advanced.UseResponsesApiTruncation = defineAndMigrateSetting('chat.advanced.useResponsesApiTruncation', 'chat.useResponsesApiTruncation', false);
|
|
366
|
+
Advanced.OmitBaseAgentInstructions = defineAndMigrateSetting('chat.advanced.omitBaseAgentInstructions', 'chat.omitBaseAgentInstructions', false);
|
|
367
|
+
Advanced.ClaudeCodeDebugEnabled = defineAndMigrateSetting('chat.advanced.claudeCode.debug', 'chat.claudeCode.debug', false);
|
|
368
|
+
Advanced.CopilotCLIEnabled = defineAndMigrateSetting('chat.advanced.copilotCLI.enabled', 'chat.copilotCLI.enabled', true);
|
|
369
|
+
Advanced.GitHistoryRelatedFilesUsingEmbeddings = defineAndMigrateSetting('chat.advanced.suggestRelatedFilesFromGitHistory.useEmbeddings', 'chat.suggestRelatedFilesFromGitHistory.useEmbeddings', false);
|
|
370
|
+
Advanced.CLIIsolationEnabled = defineAndMigrateSetting('chat.advanced.cli.isolation.enabled', 'chat.cli.isolation.enabled', false);
|
|
371
|
+
Advanced.CLIMCPServerEnabled = defineAndMigrateSetting('chat.advanced.cli.mcp.enabled', 'chat.cli.mcp.enabled', false);
|
|
372
|
+
Advanced.EnableClaudeCodeAgent = defineAndMigrateSetting('chat.advanced.claudeCode.enabled', 'chat.claudeCode.enabled', false);
|
|
373
|
+
Advanced.RequestLoggerMaxEntries = defineAndMigrateSetting('chat.advanced.debug.requestLogger.maxEntries', 'chat.debug.requestLogger.maxEntries', 100);
|
|
374
|
+
// Experiment-based settings
|
|
401
375
|
/** Uses new expanded project labels */
|
|
402
|
-
|
|
376
|
+
Advanced.ProjectLabelsExpanded = defineAndMigrateExpSetting('chat.advanced.projectLabels.expanded', 'chat.projectLabels.expanded', false);
|
|
403
377
|
/** Add project labels in default agent */
|
|
404
|
-
|
|
378
|
+
Advanced.ProjectLabelsChat = defineAndMigrateExpSetting('chat.advanced.projectLabels.chat', 'chat.projectLabels.chat', false);
|
|
405
379
|
/** Add project labels in default agent */
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
380
|
+
Advanced.ProjectLabelsInline = defineAndMigrateExpSetting('chat.advanced.projectLabels.inline', 'chat.projectLabels.inline', false);
|
|
381
|
+
Advanced.WorkspaceMaxLocalIndexSize = defineAndMigrateExpSetting('chat.advanced.workspace.maxLocalIndexSize', 'chat.workspace.maxLocalIndexSize', 100_000);
|
|
382
|
+
Advanced.WorkspaceEnableFullWorkspace = defineAndMigrateExpSetting('chat.advanced.workspace.enableFullWorkspace', 'chat.workspace.enableFullWorkspace', true);
|
|
383
|
+
Advanced.WorkspaceEnableCodeSearch = defineAndMigrateExpSetting('chat.advanced.workspace.enableCodeSearch', 'chat.workspace.enableCodeSearch', true);
|
|
384
|
+
Advanced.WorkspaceEnableEmbeddingsSearch = defineAndMigrateExpSetting('chat.advanced.workspace.enableEmbeddingsSearch', 'chat.workspace.enableEmbeddingsSearch', true);
|
|
385
|
+
Advanced.WorkspacePreferredEmbeddingsModel = defineAndMigrateExpSetting('chat.advanced.workspace.preferredEmbeddingsModel', 'chat.workspace.preferredEmbeddingsModel', '');
|
|
386
|
+
Advanced.NotebookAlternativeDocumentFormat = defineAndMigrateExpSetting('chat.advanced.notebook.alternativeFormat', 'chat.notebook.alternativeFormat', alternativeContentFormat_1.AlternativeNotebookFormat.xml);
|
|
387
|
+
Advanced.UseAlternativeNESNotebookFormat = defineAndMigrateExpSetting('chat.advanced.notebook.alternativeNESFormat.enabled', 'chat.notebook.alternativeNESFormat.enabled', false);
|
|
414
388
|
/** Configure temporal context max age */
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
AdvancedExperimentalExperiments.MultiReplaceStringGrok = defineAndMigrateExpSetting('chat.advanced.multiReplaceStringGrok.enabled', 'chat.multiReplaceStringGrok.enabled', false);
|
|
430
|
-
})(AdvancedExperimentalExperiments = ConfigKey.AdvancedExperimentalExperiments || (ConfigKey.AdvancedExperimentalExperiments = {}));
|
|
389
|
+
Advanced.TemporalContextMaxAge = defineAndMigrateExpSetting('chat.advanced.temporalContext.maxAge', 'chat.temporalContext.maxAge', 100);
|
|
390
|
+
Advanced.TemporalContextPreferSameLang = defineAndMigrateExpSetting('chat.advanced.temporalContext.preferSameLang', 'chat.temporalContext.preferSameLang', false);
|
|
391
|
+
Advanced.InstantApplyShortModelName = defineAndMigrateExpSetting('chat.advanced.instantApply.shortContextModelName', 'chat.instantApply.shortContextModelName', "gpt-4o-instant-apply-full-ft-v66-short" /* CHAT_MODEL.SHORT_INSTANT_APPLY */);
|
|
392
|
+
Advanced.InstantApplyShortContextLimit = defineAndMigrateExpSetting('chat.advanced.instantApply.shortContextLimit', 'chat.instantApply.shortContextLimit', 8000);
|
|
393
|
+
Advanced.AgentHistorySummarizationWithPromptCache = defineAndMigrateExpSetting('chat.advanced.agentHistorySummarizationWithPromptCache', 'chat.agentHistorySummarizationWithPromptCache', false);
|
|
394
|
+
Advanced.AgentHistorySummarizationForceGpt41 = defineAndMigrateExpSetting('chat.advanced.agentHistorySummarizationForceGpt41', 'chat.agentHistorySummarizationForceGpt41', false);
|
|
395
|
+
Advanced.PromptFileContext = defineAndMigrateExpSetting('chat.advanced.promptFileContextProvider.enabled', 'chat.promptFileContextProvider.enabled', true);
|
|
396
|
+
Advanced.DefaultToolsGrouped = defineAndMigrateExpSetting('chat.advanced.tools.defaultToolsGrouped', 'chat.tools.defaultToolsGrouped', false);
|
|
397
|
+
Advanced.Gpt5AlternativePatch = defineAndMigrateExpSetting('chat.advanced.gpt5AlternativePatch', 'chat.gpt5AlternativePatch', false);
|
|
398
|
+
Advanced.InlineEditsTriggerOnEditorChangeAfterSeconds = defineAndMigrateExpSetting('chat.advanced.inlineEdits.triggerOnEditorChangeAfterSeconds', 'chat.inlineEdits.triggerOnEditorChangeAfterSeconds', { defaultValue: undefined, teamDefaultValue: 10 });
|
|
399
|
+
Advanced.InlineEditsNextCursorPredictionDisplayLine = defineAndMigrateExpSetting('chat.advanced.inlineEdits.nextCursorPrediction.displayLine', 'chat.inlineEdits.nextCursorPrediction.displayLine', true);
|
|
400
|
+
Advanced.InlineEditsNextCursorPredictionCurrentFileMaxTokens = defineAndMigrateExpSetting('chat.advanced.inlineEdits.nextCursorPrediction.currentFileMaxTokens', 'chat.inlineEdits.nextCursorPrediction.currentFileMaxTokens', xtabPromptOptions.DEFAULT_OPTIONS.currentFile.maxTokens);
|
|
401
|
+
Advanced.DiagnosticsContextProvider = defineAndMigrateExpSetting('chat.advanced.inlineEdits.diagnosticsContextProvider.enabled', 'chat.inlineEdits.diagnosticsContextProvider.enabled', true);
|
|
402
|
+
})(Advanced = ConfigKey.Advanced || (ConfigKey.Advanced = {}));
|
|
431
403
|
/**
|
|
432
404
|
* Internal settings those only team members can configure
|
|
433
405
|
* Features should only be in this list temporarily, moving on to experimental to be accessible to early adopters.
|
|
434
406
|
*/
|
|
435
|
-
let
|
|
436
|
-
(function (
|
|
407
|
+
let TeamInternal;
|
|
408
|
+
(function (TeamInternal) {
|
|
437
409
|
/** Allows forcing a particular context window size.
|
|
438
410
|
* This setting doesn't validate values so large windows may not be supported by the model.
|
|
439
411
|
* Note: this should not be used while self-hosting because it might lead to
|
|
440
412
|
* a fundamental different experience compared to our end-users.
|
|
441
413
|
*/
|
|
442
|
-
|
|
414
|
+
TeamInternal.DebugOverrideChatMaxTokenNum = defineTeamInternalSetting('chat.advanced.debug.overrideChatMaxTokenNum', 0 /* ConfigType.Simple */, 0);
|
|
443
415
|
/** Allow reporting issue when clicking on the Unhelpful button
|
|
444
416
|
* Requires a window reload to take effect
|
|
445
417
|
*/
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
Internal.DiagnosticsContextProvider = defineExpSetting('chat.advanced.inlineEdits.diagnosticsContextProvider.enabled', true);
|
|
418
|
+
TeamInternal.DebugReportFeedback = defineTeamInternalSetting('chat.advanced.debug.reportFeedback', 0 /* ConfigType.Simple */, { defaultValue: false, teamDefaultValue: true });
|
|
419
|
+
TeamInternal.InlineEditsIgnoreCompletionsDisablement = defineTeamInternalSetting('chat.advanced.inlineEdits.ignoreCompletionsDisablement', 0 /* ConfigType.Simple */, false, (0, validator_1.vBoolean)());
|
|
420
|
+
TeamInternal.InlineEditsLogContextRecorderEnabled = defineTeamInternalSetting('chat.advanced.inlineEdits.logContextRecorder.enabled', 0 /* ConfigType.Simple */, false);
|
|
421
|
+
TeamInternal.InlineEditsHideInternalInterface = defineTeamInternalSetting('chat.advanced.inlineEdits.hideInternalInterface', 0 /* ConfigType.Simple */, false, (0, validator_1.vBoolean)());
|
|
422
|
+
TeamInternal.InlineEditsLogCancelledRequests = defineTeamInternalSetting('chat.advanced.inlineEdits.logCancelledRequests', 0 /* ConfigType.Simple */, false, (0, validator_1.vBoolean)());
|
|
423
|
+
TeamInternal.InlineEditsNextCursorPredictionUrl = defineTeamInternalSetting('chat.advanced.inlineEdits.nextCursorPrediction.url', 0 /* ConfigType.Simple */, undefined, (0, validator_1.vString)());
|
|
424
|
+
TeamInternal.InlineEditsNextCursorPredictionApiKey = defineTeamInternalSetting('chat.advanced.inlineEdits.nextCursorPrediction.apiKey', 0 /* ConfigType.Simple */, undefined, (0, validator_1.vString)());
|
|
425
|
+
TeamInternal.InlineEditsXtabProviderUrl = defineTeamInternalSetting('chat.advanced.inlineEdits.xtabProvider.url', 0 /* ConfigType.Simple */, undefined, (0, validator_1.vString)());
|
|
426
|
+
TeamInternal.InlineEditsXtabProviderApiKey = defineTeamInternalSetting('chat.advanced.inlineEdits.xtabProvider.apiKey', 0 /* ConfigType.Simple */, undefined, (0, validator_1.vString)());
|
|
427
|
+
TeamInternal.InlineEditsXtabProviderModelConfiguration = defineTeamInternalSetting('chat.advanced.inlineEdits.xtabProvider.modelConfiguration', 0 /* ConfigType.Simple */, { defaultValue: undefined, teamDefaultValue: { modelName: "copilot-nes-oct", promptingStrategy: xtabPromptOptions.PromptingStrategy.Xtab275, includeTagsInCurrentFile: false } }, xtabPromptOptions.MODEL_CONFIGURATION_VALIDATOR);
|
|
428
|
+
TeamInternal.InlineEditsInlineCompletionsEnabled = defineTeamInternalSetting('chat.advanced.inlineEdits.inlineCompletions.enabled', 0 /* ConfigType.Simple */, true, (0, validator_1.vBoolean)());
|
|
429
|
+
TeamInternal.InlineEditsXtabProviderUsePrediction = defineTeamInternalSetting('chat.advanced.inlineEdits.xtabProvider.usePrediction', 0 /* ConfigType.Simple */, true, (0, validator_1.vBoolean)());
|
|
430
|
+
TeamInternal.InlineEditsXtabLanguageContextEnabledLanguages = defineTeamInternalSetting('chat.advanced.inlineEdits.xtabProvider.languageContext.enabledLanguages', 0 /* ConfigType.Simple */, xtabPromptOptions_1.LANGUAGE_CONTEXT_ENABLED_LANGUAGES);
|
|
431
|
+
TeamInternal.InlineEditsDiagnosticsExplorationEnabled = defineTeamInternalSetting('chat.advanced.inlineEdits.inlineEditsDiagnosticsExplorationEnabled', 0 /* ConfigType.Simple */, false);
|
|
432
|
+
TeamInternal.InternalWelcomeHintEnabled = defineTeamInternalSetting('chat.advanced.welcomePageHint.enabled', 0 /* ConfigType.Simple */, { defaultValue: false, internalDefaultValue: true, teamDefaultValue: true });
|
|
433
|
+
TeamInternal.InlineChatUseCodeMapper = defineTeamInternalSetting('chat.advanced.inlineChat.useCodeMapper', 0 /* ConfigType.Simple */, false);
|
|
434
|
+
// Backed by Experiments
|
|
435
|
+
TeamInternal.DebugCollectFetcherTelemetry = defineTeamInternalSetting('chat.advanced.debug.collectFetcherTelemetry', 1 /* ConfigType.ExperimentBased */, true);
|
|
436
|
+
TeamInternal.DebugExpUseNodeFetchFetcher = defineTeamInternalSetting('chat.advanced.debug.useNodeFetchFetcher', 1 /* ConfigType.ExperimentBased */, undefined);
|
|
437
|
+
TeamInternal.DebugExpUseNodeFetcher = defineTeamInternalSetting('chat.advanced.debug.useNodeFetcher', 1 /* ConfigType.ExperimentBased */, undefined);
|
|
438
|
+
TeamInternal.DebugExpUseElectronFetcher = defineTeamInternalSetting('chat.advanced.debug.useElectronFetcher', 1 /* ConfigType.ExperimentBased */, undefined);
|
|
439
|
+
TeamInternal.InlineEditsAsyncCompletions = defineTeamInternalSetting('chat.advanced.inlineEdits.asyncCompletions', 1 /* ConfigType.ExperimentBased */, true);
|
|
440
|
+
TeamInternal.InlineEditsDebounceUseCoreRequestTime = defineTeamInternalSetting('chat.advanced.inlineEdits.debounceUseCoreRequestTime', 1 /* ConfigType.ExperimentBased */, false);
|
|
441
|
+
TeamInternal.InlineEditsYieldToCopilot = defineTeamInternalSetting('chat.advanced.inlineEdits.yieldToCopilot', 1 /* ConfigType.ExperimentBased */, false);
|
|
442
|
+
TeamInternal.InlineEditsExcludedProviders = defineTeamInternalSetting('chat.advanced.inlineEdits.excludedProviders', 1 /* ConfigType.ExperimentBased */, undefined);
|
|
443
|
+
TeamInternal.InlineEditsEnableCompletionsProvider = defineTeamInternalSetting('chat.advanced.inlineEdits.completionsProvider.enabled', 1 /* ConfigType.ExperimentBased */, false);
|
|
444
|
+
TeamInternal.InlineEditsEnableGhCompletionsProvider = defineTeamInternalSetting('chat.advanced.inlineEdits.githubCompletionsProvider.enabled', 1 /* ConfigType.ExperimentBased */, false);
|
|
445
|
+
TeamInternal.InlineEditsCompletionsUrl = defineTeamInternalSetting('chat.advanced.inlineEdits.completionsProvider.url', 1 /* ConfigType.ExperimentBased */, undefined);
|
|
446
|
+
TeamInternal.InlineEditsDebounce = defineTeamInternalSetting('chat.advanced.inlineEdits.debounce', 1 /* ConfigType.ExperimentBased */, 200);
|
|
447
|
+
TeamInternal.InlineEditsCacheDelay = defineTeamInternalSetting('chat.advanced.inlineEdits.cacheDelay', 1 /* ConfigType.ExperimentBased */, 300);
|
|
448
|
+
TeamInternal.InlineEditsSubsequentCacheDelay = defineTeamInternalSetting('chat.advanced.inlineEdits.subsequentCacheDelay', 1 /* ConfigType.ExperimentBased */, 0);
|
|
449
|
+
TeamInternal.InlineEditsRebasedCacheDelay = defineTeamInternalSetting('chat.advanced.inlineEdits.rebasedCacheDelay', 1 /* ConfigType.ExperimentBased */, undefined);
|
|
450
|
+
TeamInternal.InlineEditsBackoffDebounceEnabled = defineTeamInternalSetting('chat.advanced.inlineEdits.backoffDebounceEnabled', 1 /* ConfigType.ExperimentBased */, true);
|
|
451
|
+
TeamInternal.InlineEditsExtraDebounceEndOfLine = defineTeamInternalSetting('chat.advanced.inlineEdits.extraDebounceEndOfLine', 1 /* ConfigType.ExperimentBased */, 0);
|
|
452
|
+
TeamInternal.InlineEditsDebounceOnSelectionChange = defineTeamInternalSetting('chat.advanced.inlineEdits.debounceOnSelectionChange', 1 /* ConfigType.ExperimentBased */, undefined);
|
|
453
|
+
TeamInternal.InlineEditsProviderId = defineTeamInternalSetting('chat.advanced.inlineEdits.providerId', 1 /* ConfigType.ExperimentBased */, undefined);
|
|
454
|
+
TeamInternal.InlineEditsUnification = defineTeamInternalSetting('chat.advanced.inlineEdits.unification', 1 /* ConfigType.ExperimentBased */, false);
|
|
455
|
+
TeamInternal.InlineEditsNextCursorPredictionEnabled = defineTeamInternalSetting('chat.advanced.inlineEdits.nextCursorPrediction.enabled', 1 /* ConfigType.ExperimentBased */, { defaultValue: undefined, teamDefaultValue: nextCursorLinePrediction_1.NextCursorLinePrediction.OnlyWithEdit });
|
|
456
|
+
TeamInternal.InlineEditsNextCursorPredictionModelName = defineTeamInternalSetting('chat.advanced.inlineEdits.nextCursorPrediction.modelName', 1 /* ConfigType.ExperimentBased */, { defaultValue: undefined, teamDefaultValue: "xtab-cursor-jump-1104" });
|
|
457
|
+
TeamInternal.InlineEditsXtabProviderModelConfigurationString = defineTeamInternalSetting('chat.advanced.inlineEdits.xtabProvider.modelConfigurationString', 1 /* ConfigType.ExperimentBased */, undefined);
|
|
458
|
+
TeamInternal.InlineEditsXtabProviderDefaultModelConfigurationString = defineTeamInternalSetting('chat.advanced.inlineEdits.xtabProvider.defaultModelConfigurationString', 1 /* ConfigType.ExperimentBased */, undefined);
|
|
459
|
+
TeamInternal.InlineEditsXtabProviderUseVaryingLinesAbove = defineTeamInternalSetting('chat.advanced.inlineEdits.xtabProvider.useVaryingLinesAbove', 1 /* ConfigType.ExperimentBased */, undefined);
|
|
460
|
+
TeamInternal.InlineEditsXtabProviderNLinesAbove = defineTeamInternalSetting('chat.advanced.inlineEdits.xtabProvider.nLinesAbove', 1 /* ConfigType.ExperimentBased */, undefined);
|
|
461
|
+
TeamInternal.InlineEditsXtabProviderNLinesBelow = defineTeamInternalSetting('chat.advanced.inlineEdits.xtabProvider.nLinesBelow', 1 /* ConfigType.ExperimentBased */, undefined);
|
|
462
|
+
TeamInternal.InlineEditsXtabProviderRetryWithNMoreLinesBelow = defineTeamInternalSetting('chat.advanced.inlineEdits.xtabProvider.retryWithNMoreLinesBelow', 1 /* ConfigType.ExperimentBased */, undefined);
|
|
463
|
+
TeamInternal.InlineEditsAutoExpandEditWindowLines = defineTeamInternalSetting('chat.advanced.inlineEdits.autoExpandEditWindowLines', 1 /* ConfigType.ExperimentBased */, undefined);
|
|
464
|
+
TeamInternal.InlineEditsXtabNRecentlyViewedDocuments = defineTeamInternalSetting('chat.advanced.inlineEdits.xtabProvider.nRecentlyViewedDocuments', 1 /* ConfigType.ExperimentBased */, xtabPromptOptions.DEFAULT_OPTIONS.recentlyViewedDocuments.nDocuments);
|
|
465
|
+
TeamInternal.InlineEditsXtabRecentlyViewedDocumentsMaxTokens = defineTeamInternalSetting('chat.advanced.inlineEdits.xtabProvider.recentlyViewedDocuments.maxTokens', 1 /* ConfigType.ExperimentBased */, xtabPromptOptions.DEFAULT_OPTIONS.recentlyViewedDocuments.maxTokens);
|
|
466
|
+
TeamInternal.InlineEditsXtabDiffNEntries = defineTeamInternalSetting('chat.advanced.inlineEdits.xtabProvider.diffNEntries', 1 /* ConfigType.ExperimentBased */, xtabPromptOptions.DEFAULT_OPTIONS.diffHistory.nEntries);
|
|
467
|
+
TeamInternal.InlineEditsXtabDiffMaxTokens = defineTeamInternalSetting('chat.advanced.inlineEdits.xtabProvider.diffMaxTokens', 1 /* ConfigType.ExperimentBased */, xtabPromptOptions.DEFAULT_OPTIONS.diffHistory.maxTokens);
|
|
468
|
+
TeamInternal.InlineEditsXtabProviderEmitFastCursorLineChange = defineTeamInternalSetting('chat.advanced.inlineEdits.xtabProvider.emitFastCursorLineChange', 1 /* ConfigType.ExperimentBased */, true);
|
|
469
|
+
TeamInternal.InlineEditsXtabIncludeViewedFiles = defineTeamInternalSetting('chat.advanced.inlineEdits.xtabProvider.includeViewedFiles', 1 /* ConfigType.ExperimentBased */, xtabPromptOptions.DEFAULT_OPTIONS.recentlyViewedDocuments.includeViewedFiles);
|
|
470
|
+
TeamInternal.InlineEditsXtabPageSize = defineTeamInternalSetting('chat.advanced.inlineEdits.xtabProvider.pageSize', 1 /* ConfigType.ExperimentBased */, xtabPromptOptions.DEFAULT_OPTIONS.pagedClipping.pageSize);
|
|
471
|
+
TeamInternal.InlineEditsXtabEditWindowMaxTokens = defineTeamInternalSetting('chat.advanced.inlineEdits.xtabProvider.editWindowMaxTokens', 1 /* ConfigType.ExperimentBased */, undefined);
|
|
472
|
+
TeamInternal.InlineEditsXtabIncludeTagsInCurrentFile = defineTeamInternalSetting('chat.advanced.inlineEdits.xtabProvider.includeTagsInCurrentFile', 1 /* ConfigType.ExperimentBased */, xtabPromptOptions.DEFAULT_OPTIONS.currentFile.includeTags);
|
|
473
|
+
TeamInternal.InlineEditsXtabCurrentFileMaxTokens = defineTeamInternalSetting('chat.advanced.inlineEdits.xtabProvider.currentFileMaxTokens', 1 /* ConfigType.ExperimentBased */, xtabPromptOptions.DEFAULT_OPTIONS.currentFile.maxTokens);
|
|
474
|
+
TeamInternal.InlineEditsXtabPrioritizeAboveCursor = defineTeamInternalSetting('chat.advanced.inlineEdits.xtabProvider.currentFile.prioritizeAboveCursor', 1 /* ConfigType.ExperimentBased */, xtabPromptOptions.DEFAULT_OPTIONS.currentFile.prioritizeAboveCursor);
|
|
475
|
+
TeamInternal.InlineEditsXtabDiffOnlyForDocsInPrompt = defineTeamInternalSetting('chat.advanced.inlineEdits.xtabProvider.diffOnlyForDocsInPrompt', 1 /* ConfigType.ExperimentBased */, xtabPromptOptions.DEFAULT_OPTIONS.diffHistory.onlyForDocsInPrompt);
|
|
476
|
+
TeamInternal.InlineEditsXtabDiffUseRelativePaths = defineTeamInternalSetting('chat.advanced.inlineEdits.xtabProvider.diffUseRelativePaths', 1 /* ConfigType.ExperimentBased */, xtabPromptOptions.DEFAULT_OPTIONS.diffHistory.useRelativePaths);
|
|
477
|
+
TeamInternal.InlineEditsXtabNNonSignificantLinesToConverge = defineTeamInternalSetting('chat.advanced.inlineEdits.xtabProvider.nNonSignificantLinesToConverge', 1 /* ConfigType.ExperimentBased */, responseProcessor_1.ResponseProcessor.DEFAULT_DIFF_PARAMS.nLinesToConverge);
|
|
478
|
+
TeamInternal.InlineEditsXtabNSignificantLinesToConverge = defineTeamInternalSetting('chat.advanced.inlineEdits.xtabProvider.nSignificantLinesToConverge', 1 /* ConfigType.ExperimentBased */, responseProcessor_1.ResponseProcessor.DEFAULT_DIFF_PARAMS.nSignificantLinesToConverge);
|
|
479
|
+
TeamInternal.InlineEditsXtabLanguageContextEnabled = defineTeamInternalSetting('chat.advanced.inlineEdits.xtabProvider.languageContext.enabled', 1 /* ConfigType.ExperimentBased */, xtabPromptOptions.DEFAULT_OPTIONS.languageContext.enabled);
|
|
480
|
+
TeamInternal.InlineEditsXtabLanguageContextMaxTokens = defineTeamInternalSetting('chat.advanced.inlineEdits.xtabProvider.languageContext.maxTokens', 1 /* ConfigType.ExperimentBased */, xtabPromptOptions.DEFAULT_OPTIONS.languageContext.maxTokens);
|
|
481
|
+
TeamInternal.InlineEditsXtabMaxMergeConflictLines = defineTeamInternalSetting('chat.advanced.inlineEdits.xtabProvider.maxMergeConflictLines', 1 /* ConfigType.ExperimentBased */, undefined);
|
|
482
|
+
TeamInternal.InlineEditsXtabOnlyMergeConflictLines = defineTeamInternalSetting('chat.advanced.inlineEdits.xtabProvider.onlyMergeConflictLines', 1 /* ConfigType.ExperimentBased */, false);
|
|
483
|
+
TeamInternal.InlineEditsUndoInsertionFiltering = defineTeamInternalSetting('chat.advanced.inlineEdits.undoInsertionFiltering', 1 /* ConfigType.ExperimentBased */, 'v1');
|
|
484
|
+
TeamInternal.InstantApplyModelName = defineTeamInternalSetting('chat.advanced.instantApply.modelName', 1 /* ConfigType.ExperimentBased */, 'gpt-4o-instant-apply-full-ft-v66');
|
|
485
|
+
TeamInternal.VerifyTextDocumentChanges = defineTeamInternalSetting('chat.advanced.inlineEdits.verifyTextDocumentChanges', 1 /* ConfigType.ExperimentBased */, false);
|
|
515
486
|
// TODO: @sandy081 - These should be moved away from this namespace
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
})(
|
|
519
|
-
ConfigKey.Enable = defineSetting('enable', {
|
|
487
|
+
TeamInternal.EnableReadFileV2 = defineSetting('chat.advanced.enableReadFileV2', 1 /* ConfigType.ExperimentBased */, packagejson_1.isPreRelease);
|
|
488
|
+
TeamInternal.AskAgent = defineSetting('chat.advanced.enableAskAgent', 1 /* ConfigType.ExperimentBased */, { defaultValue: false, teamDefaultValue: true, internalDefaultValue: true });
|
|
489
|
+
})(TeamInternal = ConfigKey.TeamInternal || (ConfigKey.TeamInternal = {}));
|
|
490
|
+
ConfigKey.Enable = defineSetting('enable', 0 /* ConfigType.Simple */, {
|
|
520
491
|
"*": true,
|
|
521
492
|
"plaintext": false,
|
|
522
493
|
"markdown": false,
|
|
523
494
|
"scminput": false
|
|
524
495
|
});
|
|
525
|
-
ConfigKey.selectedCompletionsModel = defineSetting('selectedCompletionModel', '');
|
|
496
|
+
ConfigKey.selectedCompletionsModel = defineSetting('selectedCompletionModel', 0 /* ConfigType.Simple */, '');
|
|
526
497
|
/** Use the Responses API instead of Chat Completions when supported */
|
|
527
|
-
ConfigKey.UseResponsesApi =
|
|
498
|
+
ConfigKey.UseResponsesApi = defineSetting('chat.useResponsesApi', 1 /* ConfigType.ExperimentBased */, true);
|
|
528
499
|
/** Configure reasoning effort sent to Responses API */
|
|
529
|
-
ConfigKey.ResponsesApiReasoningEffort =
|
|
500
|
+
ConfigKey.ResponsesApiReasoningEffort = defineSetting('chat.responsesApiReasoningEffort', 1 /* ConfigType.ExperimentBased */, 'default');
|
|
530
501
|
/** Configure reasoning summary style sent to Responses API */
|
|
531
|
-
ConfigKey.ResponsesApiReasoningSummary =
|
|
532
|
-
|
|
502
|
+
ConfigKey.ResponsesApiReasoningSummary = defineSetting('chat.responsesApiReasoningSummary', 1 /* ConfigType.ExperimentBased */, 'detailed');
|
|
503
|
+
/** Use the Messages API instead of Chat Completions when supported */
|
|
504
|
+
ConfigKey.UseMessagesApi = defineSetting('chat.useMessagesApi', 1 /* ConfigType.ExperimentBased */, false);
|
|
505
|
+
ConfigKey.EnableChatImageUpload = defineSetting('chat.imageUpload.enabled', 1 /* ConfigType.ExperimentBased */, true);
|
|
533
506
|
/** Enable extended thinking for Anthropic models that support it */
|
|
534
|
-
ConfigKey.AnthropicThinkingEnabled =
|
|
507
|
+
ConfigKey.AnthropicThinkingEnabled = defineSetting('chat.anthropic.thinking.enabled', 1 /* ConfigType.ExperimentBased */, false);
|
|
535
508
|
/** Maximum thinking tokens for Anthropic extended thinking. If set, overrides the default calculation. */
|
|
536
|
-
ConfigKey.MaxAnthropicThinkingTokens = defineSetting('chat.anthropic.thinking.maxTokens', null);
|
|
509
|
+
ConfigKey.MaxAnthropicThinkingTokens = defineSetting('chat.anthropic.thinking.maxTokens', 0 /* ConfigType.Simple */, null);
|
|
537
510
|
/** Enable Anthropic web search tool for BYOK Claude models */
|
|
538
|
-
ConfigKey.AnthropicWebSearchToolEnabled =
|
|
511
|
+
ConfigKey.AnthropicWebSearchToolEnabled = defineSetting('chat.anthropic.tools.websearch.enabled', 1 /* ConfigType.ExperimentBased */, false);
|
|
539
512
|
/** Maximum number of web searches allowed per request */
|
|
540
|
-
ConfigKey.AnthropicWebSearchMaxUses = defineSetting('chat.anthropic.tools.websearch.maxUses', 5);
|
|
513
|
+
ConfigKey.AnthropicWebSearchMaxUses = defineSetting('chat.anthropic.tools.websearch.maxUses', 0 /* ConfigType.Simple */, 5);
|
|
541
514
|
/** List of domains to restrict web search results to */
|
|
542
|
-
ConfigKey.AnthropicWebSearchAllowedDomains = defineSetting('chat.anthropic.tools.websearch.allowedDomains', []);
|
|
515
|
+
ConfigKey.AnthropicWebSearchAllowedDomains = defineSetting('chat.anthropic.tools.websearch.allowedDomains', 0 /* ConfigType.Simple */, []);
|
|
543
516
|
/** List of domains to exclude from web search results */
|
|
544
|
-
ConfigKey.AnthropicWebSearchBlockedDomains = defineSetting('chat.anthropic.tools.websearch.blockedDomains', []);
|
|
517
|
+
ConfigKey.AnthropicWebSearchBlockedDomains = defineSetting('chat.anthropic.tools.websearch.blockedDomains', 0 /* ConfigType.Simple */, []);
|
|
545
518
|
/** User location for personalizing web search results */
|
|
546
|
-
ConfigKey.AnthropicWebSearchUserLocation = defineSetting('chat.anthropic.tools.websearch.userLocation', null);
|
|
519
|
+
ConfigKey.AnthropicWebSearchUserLocation = defineSetting('chat.anthropic.tools.websearch.userLocation', 0 /* ConfigType.Simple */, null);
|
|
547
520
|
/** Enable memory tool */
|
|
548
|
-
ConfigKey.MemoryToolEnabled =
|
|
521
|
+
ConfigKey.MemoryToolEnabled = defineSetting('chat.tools.memory.enabled', 1 /* ConfigType.ExperimentBased */, false);
|
|
549
522
|
/** User provided code generation instructions for the chat */
|
|
550
|
-
ConfigKey.CodeGenerationInstructions = defineSetting('chat.codeGeneration.instructions', []);
|
|
551
|
-
ConfigKey.TestGenerationInstructions = defineSetting('chat.testGeneration.instructions', []);
|
|
552
|
-
ConfigKey.CommitMessageGenerationInstructions = defineSetting('chat.commitMessageGeneration.instructions', []);
|
|
553
|
-
ConfigKey.PullRequestDescriptionGenerationInstructions = defineSetting('chat.pullRequestDescriptionGeneration.instructions', []);
|
|
523
|
+
ConfigKey.CodeGenerationInstructions = defineSetting('chat.codeGeneration.instructions', 0 /* ConfigType.Simple */, []);
|
|
524
|
+
ConfigKey.TestGenerationInstructions = defineSetting('chat.testGeneration.instructions', 0 /* ConfigType.Simple */, []);
|
|
525
|
+
ConfigKey.CommitMessageGenerationInstructions = defineSetting('chat.commitMessageGeneration.instructions', 0 /* ConfigType.Simple */, []);
|
|
526
|
+
ConfigKey.PullRequestDescriptionGenerationInstructions = defineSetting('chat.pullRequestDescriptionGeneration.instructions', 0 /* ConfigType.Simple */, []);
|
|
554
527
|
/** Show code lens "Generate tests" when we have test coverage info about this symbol and it's not covered */
|
|
555
|
-
ConfigKey.GenerateTestsCodeLens = defineSetting('chat.generateTests.codeLens', false);
|
|
528
|
+
ConfigKey.GenerateTestsCodeLens = defineSetting('chat.generateTests.codeLens', 0 /* ConfigType.Simple */, false);
|
|
556
529
|
/** Whether new flows around setting up tests are enabled */
|
|
557
|
-
ConfigKey.SetupTests = defineSetting('chat.setupTests.enabled', true);
|
|
530
|
+
ConfigKey.SetupTests = defineSetting('chat.setupTests.enabled', 0 /* ConfigType.Simple */, true);
|
|
558
531
|
/** Whether the Copilot TypeScript context provider is enabled and if how */
|
|
559
|
-
ConfigKey.TypeScriptLanguageContext =
|
|
560
|
-
ConfigKey.TypeScriptLanguageContextMode =
|
|
561
|
-
ConfigKey.TypeScriptLanguageContextIncludeDocumentation =
|
|
562
|
-
ConfigKey.TypeScriptLanguageContextCacheTimeout =
|
|
563
|
-
ConfigKey.TypeScriptLanguageContextFix =
|
|
564
|
-
ConfigKey.TypeScriptLanguageContextInline =
|
|
565
|
-
ConfigKey.UseInstructionFiles = defineSetting('chat.codeGeneration.useInstructionFiles', true);
|
|
566
|
-
ConfigKey.ReviewAgent = defineSetting('chat.reviewAgent.enabled', true);
|
|
567
|
-
ConfigKey.CodeFeedback = defineSetting('chat.reviewSelection.enabled', true);
|
|
568
|
-
ConfigKey.CodeFeedbackInstructions = defineSetting('chat.reviewSelection.instructions', []);
|
|
569
|
-
ConfigKey.UseProjectTemplates = defineSetting('chat.useProjectTemplates', true);
|
|
570
|
-
ConfigKey.
|
|
571
|
-
ConfigKey.
|
|
572
|
-
ConfigKey.
|
|
573
|
-
ConfigKey.
|
|
574
|
-
ConfigKey.
|
|
575
|
-
ConfigKey.
|
|
576
|
-
ConfigKey.
|
|
577
|
-
ConfigKey.
|
|
578
|
-
ConfigKey.
|
|
579
|
-
ConfigKey.
|
|
580
|
-
ConfigKey.
|
|
581
|
-
ConfigKey.
|
|
582
|
-
ConfigKey.
|
|
583
|
-
ConfigKey.
|
|
584
|
-
ConfigKey.
|
|
585
|
-
ConfigKey.
|
|
586
|
-
ConfigKey.
|
|
532
|
+
ConfigKey.TypeScriptLanguageContext = defineSetting('chat.languageContext.typescript.enabled', 1 /* ConfigType.ExperimentBased */, false);
|
|
533
|
+
ConfigKey.TypeScriptLanguageContextMode = defineSetting('chat.languageContext.typescript.items', 1 /* ConfigType.ExperimentBased */, 'double');
|
|
534
|
+
ConfigKey.TypeScriptLanguageContextIncludeDocumentation = defineSetting('chat.languageContext.typescript.includeDocumentation', 1 /* ConfigType.ExperimentBased */, false);
|
|
535
|
+
ConfigKey.TypeScriptLanguageContextCacheTimeout = defineSetting('chat.languageContext.typescript.cacheTimeout', 1 /* ConfigType.ExperimentBased */, 500);
|
|
536
|
+
ConfigKey.TypeScriptLanguageContextFix = defineSetting('chat.languageContext.fix.typescript.enabled', 1 /* ConfigType.ExperimentBased */, false);
|
|
537
|
+
ConfigKey.TypeScriptLanguageContextInline = defineSetting('chat.languageContext.inline.typescript.enabled', 1 /* ConfigType.ExperimentBased */, false);
|
|
538
|
+
ConfigKey.UseInstructionFiles = defineSetting('chat.codeGeneration.useInstructionFiles', 0 /* ConfigType.Simple */, true);
|
|
539
|
+
ConfigKey.ReviewAgent = defineSetting('chat.reviewAgent.enabled', 0 /* ConfigType.Simple */, true);
|
|
540
|
+
ConfigKey.CodeFeedback = defineSetting('chat.reviewSelection.enabled', 0 /* ConfigType.Simple */, true);
|
|
541
|
+
ConfigKey.CodeFeedbackInstructions = defineSetting('chat.reviewSelection.instructions', 0 /* ConfigType.Simple */, []);
|
|
542
|
+
ConfigKey.UseProjectTemplates = defineSetting('chat.useProjectTemplates', 0 /* ConfigType.Simple */, true);
|
|
543
|
+
ConfigKey.AgentDelegateAutoCommitAndPush = defineSetting('chat.agent.delegate.autoCommitAndPush', 0 /* ConfigType.Simple */, false);
|
|
544
|
+
ConfigKey.ExplainScopeSelection = defineSetting('chat.scopeSelection', 0 /* ConfigType.Simple */, false);
|
|
545
|
+
ConfigKey.EnableCodeActions = defineSetting('editor.enableCodeActions', 0 /* ConfigType.Simple */, true);
|
|
546
|
+
ConfigKey.LocaleOverride = defineSetting('chat.localeOverride', 0 /* ConfigType.Simple */, 'auto');
|
|
547
|
+
ConfigKey.TerminalChatLocation = defineSetting('chat.terminalChatLocation', 0 /* ConfigType.Simple */, 'chatView');
|
|
548
|
+
ConfigKey.AutomaticRenameSuggestions = defineSetting('renameSuggestions.triggerAutomatically', 0 /* ConfigType.Simple */, true);
|
|
549
|
+
ConfigKey.GitHistoryRelatedFilesProvider = defineSetting('chat.edits.suggestRelatedFilesFromGitHistory', 0 /* ConfigType.Simple */, true);
|
|
550
|
+
ConfigKey.Test2SrcRelatedFilesProvider = defineSetting('chat.edits.suggestRelatedFilesForTests', 0 /* ConfigType.Simple */, true);
|
|
551
|
+
ConfigKey.TerminalToDebuggerEnabled = defineSetting('chat.copilotDebugCommand.enabled', 0 /* ConfigType.Simple */, true);
|
|
552
|
+
ConfigKey.CodeSearchAgentEnabled = defineSetting('chat.codesearch.enabled', 0 /* ConfigType.Simple */, false);
|
|
553
|
+
ConfigKey.InlineEditsEnabled = defineSetting('nextEditSuggestions.enabled', 1 /* ConfigType.ExperimentBased */, { defaultValue: false, teamDefaultValue: true });
|
|
554
|
+
ConfigKey.InlineEditsEnableDiagnosticsProvider = defineSetting('nextEditSuggestions.fixes', 1 /* ConfigType.ExperimentBased */, { defaultValue: true, teamDefaultValue: true });
|
|
555
|
+
ConfigKey.InlineEditsAllowWhitespaceOnlyChanges = defineSetting('nextEditSuggestions.allowWhitespaceOnlyChanges', 1 /* ConfigType.ExperimentBased */, true);
|
|
556
|
+
ConfigKey.NewWorkspaceCreationAgentEnabled = defineSetting('chat.newWorkspaceCreation.enabled', 0 /* ConfigType.Simple */, true);
|
|
557
|
+
ConfigKey.NewWorkspaceUseContext7 = defineSetting('chat.newWorkspace.useContext7', 0 /* ConfigType.Simple */, false);
|
|
558
|
+
ConfigKey.SummarizeAgentConversationHistory = defineSetting('chat.summarizeAgentConversationHistory.enabled', 0 /* ConfigType.Simple */, true);
|
|
559
|
+
ConfigKey.VirtualToolThreshold = defineSetting('chat.virtualTools.threshold', 1 /* ConfigType.ExperimentBased */, exports.HARD_TOOL_LIMIT);
|
|
560
|
+
ConfigKey.CurrentEditorAgentContext = defineSetting('chat.agent.currentEditorContext.enabled', 0 /* ConfigType.Simple */, true);
|
|
587
561
|
/** BYOK */
|
|
588
|
-
ConfigKey.OllamaEndpoint = defineSetting('chat.byok.ollamaEndpoint', 'http://localhost:11434');
|
|
589
|
-
ConfigKey.AzureModels = defineSetting('chat.azureModels', {});
|
|
590
|
-
ConfigKey.CustomOAIModels = defineSetting('chat.customOAIModels', {});
|
|
591
|
-
ConfigKey.AutoFixDiagnostics =
|
|
592
|
-
ConfigKey.NotebookFollowCellExecution = defineSetting('chat.notebook.followCellExecution.enabled', false);
|
|
593
|
-
ConfigKey.UseAlternativeNESNotebookFormat =
|
|
594
|
-
ConfigKey.CustomInstructionsInSystemMessage = defineSetting('chat.customInstructionsInSystemMessage', true);
|
|
595
|
-
ConfigKey.EnableAlternateGptPrompt =
|
|
596
|
-
ConfigKey.CompletionsFetcher =
|
|
597
|
-
ConfigKey.NextEditSuggestionsFetcher =
|
|
562
|
+
ConfigKey.OllamaEndpoint = defineSetting('chat.byok.ollamaEndpoint', 0 /* ConfigType.Simple */, 'http://localhost:11434');
|
|
563
|
+
ConfigKey.AzureModels = defineSetting('chat.azureModels', 0 /* ConfigType.Simple */, {});
|
|
564
|
+
ConfigKey.CustomOAIModels = defineSetting('chat.customOAIModels', 0 /* ConfigType.Simple */, {});
|
|
565
|
+
ConfigKey.AutoFixDiagnostics = defineSetting('chat.agent.autoFix', 1 /* ConfigType.ExperimentBased */, true);
|
|
566
|
+
ConfigKey.NotebookFollowCellExecution = defineSetting('chat.notebook.followCellExecution.enabled', 0 /* ConfigType.Simple */, false);
|
|
567
|
+
ConfigKey.UseAlternativeNESNotebookFormat = defineSetting('chat.notebook.enhancedNextEditSuggestions.enabled', 1 /* ConfigType.ExperimentBased */, false);
|
|
568
|
+
ConfigKey.CustomInstructionsInSystemMessage = defineSetting('chat.customInstructionsInSystemMessage', 0 /* ConfigType.Simple */, true);
|
|
569
|
+
ConfigKey.EnableAlternateGptPrompt = defineSetting('chat.alternateGptPrompt.enabled', 1 /* ConfigType.ExperimentBased */, false);
|
|
570
|
+
ConfigKey.CompletionsFetcher = defineSetting('chat.completionsFetcher', 1 /* ConfigType.ExperimentBased */, undefined);
|
|
571
|
+
ConfigKey.NextEditSuggestionsFetcher = defineSetting('chat.nesFetcher', 1 /* ConfigType.ExperimentBased */, undefined);
|
|
598
572
|
})(ConfigKey || (exports.ConfigKey = ConfigKey = {}));
|
|
599
573
|
function getAllConfigKeys() {
|
|
600
574
|
return Object.values(ConfigKey).flatMap(namespace => Object.values(namespace).map(setting => setting.fullyQualifiedId));
|