diff --git a/extensions/copilot/package.json b/extensions/copilot/package.json index fc6d361e0d5..1cd804d73a6 100644 --- a/extensions/copilot/package.json +++ b/extensions/copilot/package.json @@ -4145,16 +4145,6 @@ "onExp" ] }, - "github.copilot.chat.workspace.maxDiffSizeBeforeUsingExternalIngest": { - "type": "number", - "default": 100, - "markdownDescription": "%github.copilot.config.workspace.maxDiffSizeBeforeUsingExternalIngest%", - "tags": [ - "advanced", - "experimental", - "onExp" - ] - }, "github.copilot.chat.workspace.preferredEmbeddingsModel": { "type": "string", "default": "", @@ -4891,6 +4881,15 @@ "tags": [ "advanced" ] + }, + "github.copilot.chat.workspace.codeSearchExternalIngest.enabled": { + "type": "boolean", + "default": false, + "markdownDescription": "%github.copilot.config.workspace.codeSearchExternalIngest.enabled%", + "tags": [ + "advanced", + "onExp" + ] } } } diff --git a/extensions/copilot/package.nls.json b/extensions/copilot/package.nls.json index 36eb4711531..44adc44eb8c 100644 --- a/extensions/copilot/package.nls.json +++ b/extensions/copilot/package.nls.json @@ -177,6 +177,7 @@ "github.copilot.config.localIndex.enabled": "Enable local session tracking. When enabled, session data is tracked locally for /chronicle commands.", "github.copilot.config.sessionSearch.cloudSync.enabled": "Enable cloud sync for session data. When enabled, session data is synced to your Copilot account for cross-device access.", "github.copilot.config.sessionSearch.cloudSync.excludeRepositories": "Repository patterns to exclude from cloud sync. Use exact `owner/repo` names or glob patterns like `my-org/*`. Sessions from matching repos will only be stored locally.", + "github.copilot.config.workspace.codeSearchExternalIngest.enabled": "Enable external ingest for semantic codebase search.", "copilot.workspace.explain.description": "Explain how the code in your active editor works", "copilot.workspace.edit.description": "Edit files in your workspace", "copilot.workspace.review.description": "Review the selected code in your active editor", @@ -366,7 +367,6 @@ "github.copilot.config.projectLabels.inline": "Add project labels in inline edit requests.", "github.copilot.config.workspace.maxLocalIndexSize": "Maximum size of the local workspace index.", "github.copilot.config.workspace.enableCodeSearch": "Enable code search in workspace context.", - "github.copilot.config.workspace.maxDiffSizeBeforeUsingExternalIngest": "Maximum number of local changes before we start using using external ingest.", "github.copilot.config.workspace.preferredEmbeddingsModel": "Preferred embeddings model for semantic search.", "github.copilot.config.workspace.prototypeAdoCodeSearchEndpointOverride": "Override endpoint for Azure DevOps code search prototype.", "github.copilot.config.feedback.onChange": "Enable feedback collection on configuration changes.", diff --git a/extensions/copilot/src/platform/configuration/common/configurationService.ts b/extensions/copilot/src/platform/configuration/common/configurationService.ts index d9338710fa8..d320b41edc3 100644 --- a/extensions/copilot/src/platform/configuration/common/configurationService.ts +++ b/extensions/copilot/src/platform/configuration/common/configurationService.ts @@ -637,7 +637,7 @@ export namespace ConfigKey { export const ProjectLabelsInline = defineAndMigrateExpSetting('chat.advanced.projectLabels.inline', 'chat.projectLabels.inline', false); export const WorkspaceMaxLocalIndexSize = defineAndMigrateExpSetting('chat.advanced.workspace.maxLocalIndexSize', 'chat.workspace.maxLocalIndexSize', 100_000); export const WorkspaceEnableCodeSearch = defineAndMigrateExpSetting('chat.advanced.workspace.enableCodeSearch', 'chat.workspace.enableCodeSearch', true); - export const WorkspaceMaxDiffSizeBeforeUsingExternalIngest = defineAndMigrateExpSetting('chat.advanced.workspace.maxDiffSizeBeforeUsingExternalIngest', 'chat.workspace.maxDiffSizeBeforeUsingExternalIngest', 100); + export const WorkspaceEnableCodeSearchExternalIngest = defineSetting('chat.workspace.codeSearchExternalIngest.enabled', ConfigType.ExperimentBased, false, undefined, undefined, { experimentName: 'copilotchat.config.chat.advanced.workspace.codeSearchExternalIngest.enabled' }); export const WorkspacePreferredEmbeddingsModel = defineAndMigrateExpSetting('chat.advanced.workspace.preferredEmbeddingsModel', 'chat.workspace.preferredEmbeddingsModel', ''); export const NotebookAlternativeDocumentFormat = defineAndMigrateExpSetting('chat.advanced.notebook.alternativeFormat', 'chat.notebook.alternativeFormat', AlternativeNotebookFormat.xml); export const UseAlternativeNESNotebookFormat = defineAndMigrateExpSetting('chat.advanced.notebook.alternativeNESFormat.enabled', 'chat.notebook.alternativeNESFormat.enabled', false); @@ -888,7 +888,6 @@ export namespace ConfigKey { export const RetryNetworkErrors = defineSetting('chat.advanced.enableRetryNetworkErrors', ConfigType.ExperimentBased, true); export const RetryServerErrorStatusCodes = defineSetting('chat.advanced.retryServerErrorStatusCodes', ConfigType.ExperimentBased, '500,502'); export const FallbackNodeFetchOnNetworkProcessCrash = defineSetting('chat.advanced.enableFallbackNodeFetchOnNetworkProcessCrash', ConfigType.ExperimentBased, true); - export const WorkspaceEnableCodeSearchExternalIngest = defineTeamInternalSetting('chat.advanced.workspace.codeSearchExternalIngest.enabled', ConfigType.ExperimentBased, false); export const ChatRequestPowerSaveBlocker = defineTeamInternalSetting('chat.advanced.chatRequestPowerSaveBlocker', ConfigType.ExperimentBased, true); /** Enable WebSocket transport for Responses API requests. When enabled, uses a persistent WebSocket connection per conversation instead of individual HTTP requests. */ export const ResponsesApiWebSocketEnabled = defineTeamInternalSetting('chat.advanced.responsesApi.webSocket.enabled', ConfigType.ExperimentBased, true); diff --git a/extensions/copilot/src/platform/workspaceChunkSearch/node/codeSearch/codeSearchChunkSearch.ts b/extensions/copilot/src/platform/workspaceChunkSearch/node/codeSearch/codeSearchChunkSearch.ts index 307396c9660..3a66f5e8f94 100644 --- a/extensions/copilot/src/platform/workspaceChunkSearch/node/codeSearch/codeSearchChunkSearch.ts +++ b/extensions/copilot/src/platform/workspaceChunkSearch/node/codeSearch/codeSearchChunkSearch.ts @@ -435,7 +435,7 @@ export class CodeSearchChunkSearch extends Disposable { } public isExternalIngestEnabled(): boolean | 'force' { - return this._configService.getExperimentBasedConfig(ConfigKey.TeamInternal.WorkspaceEnableCodeSearchExternalIngest, this._experimentationService); + return this._configService.getExperimentBasedConfig(ConfigKey.Advanced.WorkspaceEnableCodeSearchExternalIngest, this._experimentationService); } public getRemoteIndexState(): CodeSearchRemoteIndexState {