diff --git a/renderer/src/api/message-bridge.ts b/renderer/src/api/message-bridge.ts index a998ece..36e6f6e 100644 --- a/renderer/src/api/message-bridge.ts +++ b/renderer/src/api/message-bridge.ts @@ -237,6 +237,10 @@ export class MessageBridge { return new Promise((resolve, reject) => { const handler = this.addCommandListener(command, (data) => { + if (data._id === undefined) { + console.warn('detect data without id, data: ' + JSON.stringify(data, null, 2)); + } + if (data._id === _id) { handler(); resolve(data as RestFulResponse); diff --git a/src/webview/webview.service.ts b/src/webview/webview.service.ts index 117642e..df24c1f 100644 --- a/src/webview/webview.service.ts +++ b/src/webview/webview.service.ts @@ -79,6 +79,7 @@ export function revealOpenMcpWebviewPanel( switch (command) { case 'vscode/launch-signature': const launchResult = { + _id: data._id, code: 200, msg: option };