@@ -79,7 +79,6 @@ 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 ( )
83
82
const config = await next ( params , token )
84
83
if ( params . items [ 0 ] . section === 'aws.q' ) {
85
84
const customization = undefinedIfEmpty ( getSelectedCustomization ( ) . arn )
@@ -93,20 +92,20 @@ export async function startLanguageServer(
93
92
customization,
94
93
optOutTelemetry : getOptOutPreference ( ) === 'OPTOUT' ,
95
94
projectContext : {
96
- enableLocalIndexing : vscodeConfig . get ( 'amazonQ.workspaceIndex' ) ,
97
- enableGpuAcceleration : vscodeConfig . get ( 'amazonQ.workspaceIndexUseGPU' ) ,
98
- indexWorkerThreads : vscodeConfig . get ( 'amazonQ.workspaceIndexWorkerThreads' ) ,
95
+ enableLocalIndexing : true ,
99
96
} ,
100
97
} ,
101
98
]
102
99
}
103
100
if ( params . items [ 0 ] . section === 'aws.codeWhisperer' ) {
104
101
return [
105
102
{
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' ) ,
110
109
} ,
111
110
]
112
111
}
0 commit comments