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 bde1af6 commit d66b0bcCopy full SHA for d66b0bc
src/test/unit/panels/resultsPanel.test.ts
@@ -25,7 +25,13 @@ suite("Results Panel Tests", () => {
25
webview: {
26
html: "",
27
cspSource: "vscode-webview://test-source",
28
- asWebviewUri: (uri: Uri) => Uri.parse(`vscode-webview://test/${uri.path}`)
+ asWebviewUri: (uri: Uri) => Uri.parse(`vscode-webview://test/${uri.path}`),
29
+ // Assisted by CursorAI ; inserted onDidReceiveMessage
30
+ onDidReceiveMessage: (callback: (message: any) => void) => {
31
+ // Store the callback for potential use in tests
32
+ (mockPanel.webview as any)._messageCallback = callback;
33
+ return { dispose: () => {} };
34
+ }
35
},
36
onDidDispose: (_callback: () => void) => ({ dispose: () => {} }),
37
dispose: () => {},
0 commit comments