@@ -79,6 +79,7 @@ export async function startLanguageServer(
79
79
* Convert VSCode settings format to be compatible with flare's configs
80
80
*/
81
81
configuration : async ( params , token , next ) => {
82
+ const vscodeConfig = vscode . workspace . getConfiguration ( )
82
83
const config = await next ( params , token )
83
84
if ( params . items [ 0 ] . section === 'aws.q' ) {
84
85
const customization = undefinedIfEmpty ( getSelectedCustomization ( ) . arn )
@@ -92,20 +93,20 @@ export async function startLanguageServer(
92
93
customization,
93
94
optOutTelemetry : getOptOutPreference ( ) === 'OPTOUT' ,
94
95
projectContext : {
95
- enableLocalIndexing : true ,
96
+ enableLocalIndexing : vscodeConfig . get ( 'amazonQ.workspaceIndex' ) ,
97
+ enableGpuAcceleration : vscodeConfig . get ( 'amazonQ.workspaceIndexUseGPU' ) ,
98
+ indexWorkerThreads : vscodeConfig . get ( 'amazonQ.workspaceIndexWorkerThreads' ) ,
96
99
} ,
97
100
} ,
98
101
]
99
102
}
100
103
if ( params . items [ 0 ] . section === 'aws.codeWhisperer' ) {
101
104
return [
102
105
{
103
- includeSuggestionsWithCodeReferences : vscode . workspace
104
- . getConfiguration ( )
105
- . get ( 'amazonQ.showCodeWithReferences' ) ,
106
- shareCodeWhispererContentWithAWS : vscode . workspace
107
- . getConfiguration ( )
108
- . get ( 'amazonQ.shareContentWithAWS' ) ,
106
+ includeSuggestionsWithCodeReferences : vscodeConfig . get (
107
+ 'amazonQ.showCodeWithReferences'
108
+ ) ,
109
+ shareCodeWhispererContentWithAWS : vscodeConfig . get ( 'amazonQ.shareContentWithAWS' ) ,
109
110
} ,
110
111
]
111
112
}
0 commit comments