MCPcopy Create free account
hub / github.com/REditorSupport/vscode-R / handleWebviewMessage

Method handleWebviewMessage

src/plotViewer/index.ts:747–756  ·  view source on GitHub ↗
(msg: OutMessage)

Source from the content-addressed store, hash-verified

745 }
746
747 protected handleWebviewMessage(msg: OutMessage): void {
748 if (msg.message === 'log') {
749 console.log(msg.body);
750 } else if (msg.message === 'resize') {
751 const height = msg.height;
752 const width = msg.width;
753 const userTriggered = msg.userTriggered;
754 void this.handleResize(height, width, userTriggered);
755 }
756 }
757
758 protected postWebviewMessage(msg: InMessage): void {
759 void this.webviewPanel?.webview.postMessage(msg);

Callers 1

makeNewWebviewMethod · 0.95

Calls 1

handleResizeMethod · 0.95

Tested by

no test coverage detected