Skip to content

Commit 635b939

Browse files
committed
fix(amazonq): enable local workspace server through flare
1 parent d457022 commit 635b939

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

packages/amazonq/src/lsp/client.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,25 @@ export async function startLanguageServer(
6060
const clientOptions: LanguageClientOptions = {
6161
// Register the server for json documents
6262
documentSelector,
63+
// TODO uncomment this when local indexing is in agent chat server manifest and
64+
// starting the workspace context doesn't generate known errors: https://github.com/aws/language-servers/pull/982/files
65+
// middleware: {
66+
// workspace: {
67+
// configuration: async (params, token, next) => {
68+
// const config = await next(params, token)
69+
// if (params.items[0].section === 'aws.q') {
70+
// return [
71+
// {
72+
// projectContext: {
73+
// enableLocalIndexing: true,
74+
// },
75+
// },
76+
// ]
77+
// }
78+
// return config
79+
// },
80+
// },
81+
// },
6382
initializationOptions: {
6483
aws: {
6584
clientInfo: {

0 commit comments

Comments
 (0)