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

Method makeNewWebview

src/plotViewer/index.ts:729–745  ·  view source on GitHub ↗
(showOptions?: ShowOptions)

Source from the content-addressed store, hash-verified

727 }
728
729 protected makeNewWebview(showOptions?: ShowOptions): vscode.WebviewPanel {
730 const webviewPanel = vscode.window.createWebviewPanel(
731 'RPlot',
732 'R Plot',
733 showOptions || this.showOptions,
734 this.webviewOptions
735 );
736 webviewPanel.iconPath = new UriIcon('graph');
737 webviewPanel.onDidDispose(() => this.webviewPanel = undefined);
738 webviewPanel.onDidChangeViewState(() => {
739 void this.setContextValues();
740 });
741 webviewPanel.webview.onDidReceiveMessage((e: OutMessage) => {
742 this.handleWebviewMessage(e);
743 });
744 return webviewPanel;
745 }
746
747 protected handleWebviewMessage(msg: OutMessage): void {
748 if (msg.message === 'log') {

Callers 2

showMethod · 0.95
refreshHtmlMethod · 0.95

Calls 2

setContextValuesMethod · 0.95
handleWebviewMessageMethod · 0.95

Tested by

no test coverage detected