Skip to content

Commit faeeb98

Browse files
authored
feat(amazonq): pass workspaceIdentifier when initializing AmazonQ lsp aws#7252
## Problem AmazonQ LSP needs an identifier for the IDE workspace, which should be stable and unique for each workspace, regardless of IDE restarts or system reboots. ## Solution Use [ExtensionContext.storageUri](https://code.visualstudio.com/api/references/vscode-api#ExtensionContext.storageUri) as such an identifier and pass it when initializing AmazonQ lsp.
1 parent 9b873dc commit faeeb98

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/amazonq/src/lsp/client.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,9 @@ export async function startLanguageServer(
131131
showSaveFileDialog: true,
132132
},
133133
},
134+
contextConfiguration: {
135+
workspaceIdentifier: extensionContext.storageUri,
136+
},
134137
logLevel: toAmazonQLSPLogLevel(globals.logOutputChannel.logLevel),
135138
},
136139
credentials: {

0 commit comments

Comments
 (0)