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

Method refreshCurrentEntry

src/helpViewer/panel.ts:80–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78 }
79
80 private async refreshCurrentEntry(): Promise<void> {
81 if(!this.currentEntry){
82 return;
83 }
84 const newHelpFile = await this.rHelp.getHelpFileForPath(this.currentEntry.helpFile.requestPath, undefined, true);
85 if(!newHelpFile){
86 return;
87 }
88 newHelpFile.scrollY = await this.getScrollY();
89 await this.showHelpFile(newHelpFile, false, undefined, undefined, true);
90 }
91
92 // retrieves the stored webview or creates a new one if the webview was closed
93 private getWebview(preserveFocus: boolean = false, viewColumn: vscode.ViewColumn = vscode.ViewColumn.Two): vscode.Webview {

Callers 2

refreshMethod · 0.95
refreshPreviewMethod · 0.95

Calls 3

getScrollYMethod · 0.95
showHelpFileMethod · 0.95
getHelpFileForPathMethod · 0.80

Tested by

no test coverage detected