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

Method show

src/plotViewer/index.ts:387–400  ·  view source on GitHub ↗
(preserveFocus?: boolean)

Source from the content-addressed store, hash-verified

385
386 // Called to create a new webview if the user closed the old one:
387 public show(preserveFocus?: boolean): void {
388 preserveFocus ??= this.showOptions.preserveFocus;
389 if (!this.webviewPanel) {
390 const showOptions = {
391 ...this.showOptions,
392 preserveFocus: preserveFocus
393 };
394 this.webviewPanel = this.makeNewWebview(showOptions);
395 this.refreshHtml();
396 } else {
397 this.webviewPanel.reveal(undefined, preserveFocus);
398 }
399 this.parent.registerActiveViewer(this);
400 }
401
402 public openExternal(): void {
403 let urlString = `http://${this.host}/live`;

Callers 15

showViewerMethod · 0.95
createRTermFunction · 0.80
chooseTerminalFunction · 0.80
setFocusFunction · 0.80
spawnServerMethod · 0.80
activateFunction · 0.80
updateRequestFunction · 0.80
sendCodeToRTerminalFunction · 0.80
handleCommandMethod · 0.80
knitWithProgressFunction · 0.80
updatePreviewMethod · 0.80
renderDocumentMethod · 0.80

Calls 3

makeNewWebviewMethod · 0.95
refreshHtmlMethod · 0.95
registerActiveViewerMethod · 0.80

Tested by

no test coverage detected