Skip to content

Commit 44d6588

Browse files
committed
uncomment
1 parent f1aaec8 commit 44d6588

File tree

1 file changed

+17
-19
lines changed

1 file changed

+17
-19
lines changed

packages/amazonq/src/lsp/client.ts

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff 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: {

0 commit comments

Comments
 (0)