File tree Expand file tree Collapse file tree 1 file changed +17
-19
lines changed Expand file tree Collapse file tree 1 file changed +17
-19
lines changed Original file line number Diff line number Diff line change @@ -72,25 +72,23 @@ export async function startLanguageServer(
7272 const clientOptions : LanguageClientOptions = {
7373 // Register the server for json documents
7474 documentSelector,
75- // TODO uncomment this when local indexing is in agent chat server manifest and
76- // starting the workspace context doesn't generate known errors: https://github.com/aws/language-servers/pull/982/files
77- // middleware: {
78- // workspace: {
79- // configuration: async (params, token, next) => {
80- // const config = await next(params, token)
81- // if (params.items[0].section === 'aws.q') {
82- // return [
83- // {
84- // projectContext: {
85- // enableLocalIndexing: true,
86- // },
87- // },
88- // ]
89- // }
90- // return config
91- // },
92- // },
93- // },
75+ middleware : {
76+ workspace : {
77+ configuration : async ( params , token , next ) => {
78+ const config = await next ( params , token )
79+ if ( params . items [ 0 ] . section === 'aws.q' ) {
80+ return [
81+ {
82+ projectContext : {
83+ enableLocalIndexing : true ,
84+ } ,
85+ } ,
86+ ]
87+ }
88+ return config
89+ } ,
90+ } ,
91+ } ,
9492 initializationOptions : {
9593 aws : {
9694 clientInfo : {
You can’t perform that action at this time.
0 commit comments