Skip to content

Commit e3c059a

Browse files
committed
fix(amazonq): forward chat update notification
1 parent 009258c commit e3c059a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/amazonq/src/lsp/chat/messages.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ import {
4949
buttonClickRequestType,
5050
ButtonClickResult,
5151
CancellationTokenSource,
52+
chatUpdateNotificationType,
53+
ChatUpdateParams,
5254
} from '@aws/language-server-runtimes/protocol'
5355
import { v4 as uuidv4 } from 'uuid'
5456
import * as vscode from 'vscode'
@@ -463,6 +465,13 @@ export function registerMessageListeners(
463465
true
464466
)
465467
})
468+
469+
languageClient.onNotification(chatUpdateNotificationType.method, (params: ChatUpdateParams) => {
470+
void provider.webview?.postMessage({
471+
command: chatUpdateNotificationType.method,
472+
params: params,
473+
})
474+
})
466475
}
467476

468477
function isServerEvent(command: string) {

0 commit comments

Comments
 (0)