Skip to content

Commit f06f21b

Browse files
committed
fix: tie enableLocalIndex back to user setting
1 parent 907c784 commit f06f21b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/amazonq/src/lsp/client.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,7 @@ function getConfigSection(section: ConfigSection) {
281281
customization: undefinedIfEmpty(getSelectedCustomization().arn),
282282
optOutTelemetry: getOptOutPreference() === 'OPTOUT',
283283
projectContext: {
284-
// TODO: we might need another setting to control the actual indexing
285-
enableLocalIndexing: true,
284+
enableLocalIndexing: CodeWhispererSettings.instance.isLocalIndexEnabled(),
286285
enableGpuAcceleration: CodeWhispererSettings.instance.isLocalIndexGPUEnabled(),
287286
indexWorkerThreads: CodeWhispererSettings.instance.getIndexWorkerThreads(),
288287
localIndexing: {

0 commit comments

Comments
 (0)