Skip to content

Commit f07432b

Browse files
authored
fix(amazonq): tie enableLocalIndex back to user setting (aws#7200)
## Problem With aws/language-servers#1201 we can now use userSetting to control vector indexing ## Solution --- - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). - License: I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 574990e commit f07432b

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)