(showOptions?: ShowOptions)
| 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') { |
no test coverage detected