We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43658ff commit 55d6c91Copy full SHA for 55d6c91
packages/amazonq/src/lsp/chat/messages.ts
@@ -198,7 +198,7 @@ export function registerMessageListeners(
198
const partialResultToken = uuidv4()
199
let lastPartialResult: ChatResult | undefined
200
const cancellationToken = new CancellationTokenSource()
201
- chatStreamTokens.set(message.params.tabId, cancellationToken)
+ chatStreamTokens.set(chatParams.tabId, cancellationToken)
202
203
const chatDisposable = languageClient.onProgress(
204
chatRequestType,
@@ -259,6 +259,8 @@ export function registerMessageListeners(
259
chatParams.tabId,
260
chatDisposable
261
)
262
+ } finally {
263
+ chatStreamTokens.delete(chatParams.tabId)
264
}
265
break
266
0 commit comments