Skip to content
This repository was archived by the owner on May 11, 2022. It is now read-only.

Commit 862b4a2

Browse files
committed
FUSETOOLS2-1055 - provide trace when sending message to webview
Signed-off-by: Aurélien Pupier <[email protected]>
1 parent 1c6f9c6 commit 862b4a2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/didactPanel.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,7 @@ export class DidactPanel {
370370
if (!this._panel) {
371371
return;
372372
}
373+
console.log('will post message from postMessage '+message);
373374
const jsonMsg:string = "{ \"command\": \"sendMessage\", \"data\": \"" + message + "\"}";
374375
this._panel.webview.postMessage(jsonMsg);
375376
}
@@ -378,6 +379,7 @@ export class DidactPanel {
378379
if (!this._panel) {
379380
return;
380381
}
382+
console.log('will post message from postRequirementsResponseMessage ');
381383
const jsonMsg:string = "{ \"command\": \"requirementCheck\", \"requirementName\": \"" + requirementName + "\", \"result\": \"" + result + "\"}";
382384
this._panel.webview.postMessage(jsonMsg);
383385
await this.sendSetStateMessage();
@@ -388,6 +390,7 @@ export class DidactPanel {
388390
return;
389391
}
390392
const jsonMsg = `{ "command" : "${msg}"}`;
393+
console.log('will post message from postNamedSimpleMessage '+msg);
391394
this._panel.webview.postMessage(jsonMsg);
392395
}
393396

@@ -416,6 +419,7 @@ export class DidactPanel {
416419
if (!this._panel || this._disposed) {
417420
return;
418421
}
422+
console.log('will post mess age from sendScrollToHeadingMessage');
419423
const jsonMsg = `{ "command": "scrollToHeading", "tag" : "${tag}", "headingText" : "${headingText}" }`;
420424
await this._panel.webview.postMessage(jsonMsg);
421425
}

0 commit comments

Comments
 (0)