diff --git a/packages/amazonq/src/lsp/client.ts b/packages/amazonq/src/lsp/client.ts index 23633f15048..3dacee0c7f1 100644 --- a/packages/amazonq/src/lsp/client.ts +++ b/packages/amazonq/src/lsp/client.ts @@ -281,8 +281,7 @@ function getConfigSection(section: ConfigSection) { customization: undefinedIfEmpty(getSelectedCustomization().arn), optOutTelemetry: getOptOutPreference() === 'OPTOUT', projectContext: { - // TODO: we might need another setting to control the actual indexing - enableLocalIndexing: true, + enableLocalIndexing: CodeWhispererSettings.instance.isLocalIndexEnabled(), enableGpuAcceleration: CodeWhispererSettings.instance.isLocalIndexGPUEnabled(), indexWorkerThreads: CodeWhispererSettings.instance.getIndexWorkerThreads(), localIndexing: {