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

Method showHistoryEntry

src/helpViewer/panel.ts:239–252  ·  view source on GitHub ↗
(entry: HistoryEntry)

Source from the content-addressed store, hash-verified

237 }
238 }
239 private async showHistoryEntry(entry: HistoryEntry) {
240 let helpFile: HelpFile;
241 if (entry.isStale) {
242 // Fallback to stale helpFile.
243 // Handle differently?
244 const newHelpFile = await this.rHelp.getHelpFileForPath(entry.helpFile.requestPath, true, true);
245 helpFile = newHelpFile || entry.helpFile;
246 helpFile.scrollY = entry.helpFile.scrollY;
247 } else {
248 helpFile = entry.helpFile;
249 }
250
251 void this.showHelpFile(helpFile, false);
252 }
253
254 // Get current scrollY from webview
255 private async getScrollY(): Promise<number> {

Callers 2

_goBackMethod · 0.95
_goForwardMethod · 0.95

Calls 2

showHelpFileMethod · 0.95
getHelpFileForPathMethod · 0.80

Tested by

no test coverage detected