Skip to content

Commit 879584e

Browse files
committed
Revert "feat(amazonq): Add project context to LSP client"
This reverts commit d856334.
1 parent eb6c9c9 commit 879584e

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

packages/amazonq/src/lsp/client.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ export async function startLanguageServer(
7979
* Convert VSCode settings format to be compatible with flare's configs
8080
*/
8181
configuration: async (params, token, next) => {
82-
const vscodeConfig = vscode.workspace.getConfiguration()
8382
const config = await next(params, token)
8483
if (params.items[0].section === 'aws.q') {
8584
const customization = undefinedIfEmpty(getSelectedCustomization().arn)
@@ -93,20 +92,20 @@ export async function startLanguageServer(
9392
customization,
9493
optOutTelemetry: getOptOutPreference() === 'OPTOUT',
9594
projectContext: {
96-
enableLocalIndexing: vscodeConfig.get('amazonQ.workspaceIndex'),
97-
enableGpuAcceleration: vscodeConfig.get('amazonQ.workspaceIndexUseGPU'),
98-
indexWorkerThreads: vscodeConfig.get('amazonQ.workspaceIndexWorkerThreads'),
95+
enableLocalIndexing: true,
9996
},
10097
},
10198
]
10299
}
103100
if (params.items[0].section === 'aws.codeWhisperer') {
104101
return [
105102
{
106-
includeSuggestionsWithCodeReferences: vscodeConfig.get(
107-
'amazonQ.showCodeWithReferences'
108-
),
109-
shareCodeWhispererContentWithAWS: vscodeConfig.get('amazonQ.shareContentWithAWS'),
103+
includeSuggestionsWithCodeReferences: vscode.workspace
104+
.getConfiguration()
105+
.get('amazonQ.showCodeWithReferences'),
106+
shareCodeWhispererContentWithAWS: vscode.workspace
107+
.getConfiguration()
108+
.get('amazonQ.shareContentWithAWS'),
110109
},
111110
]
112111
}

0 commit comments

Comments
 (0)