Skip to content

Commit c97740e

Browse files
authored
feat(amazonq): import userWrittenCode configuration for inline with lsp (#7281)
## Problem Add importAdder and userWrittenCode configuration to inline with LSP ## 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 8e85476 commit c97740e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/amazonq/src/lsp/client.ts

+2
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,8 @@ function getConfigSection(section: ConfigSection) {
333333
includeSuggestionsWithCodeReferences:
334334
CodeWhispererSettings.instance.isSuggestionsWithCodeReferencesEnabled(),
335335
shareCodeWhispererContentWithAWS: !CodeWhispererSettings.instance.isOptoutEnabled(),
336+
includeImportsWithSuggestions: CodeWhispererSettings.instance.isImportRecommendationEnabled(),
337+
sendUserWrittenCodeMetrics: true,
336338
},
337339
]
338340
case 'aws.logLevel':

0 commit comments

Comments
 (0)