MCPcopy Index your code
hub / github.com/REditorSupport/vscode-R / clearCachedFiles

Method clearCachedFiles

src/helpViewer/index.ts:358–367  ·  view source on GitHub ↗
(re: string | RegExp)

Source from the content-addressed store, hash-verified

356
357 // refresh cached help info only for a specific file/package
358 public clearCachedFiles(re: string | RegExp): void {
359 for (const path of this.cachedHelpFiles.keys()) {
360 if (
361 (typeof re === 'string' && path === re) ||
362 (typeof re !== 'string' && re.exec(path))
363 ) {
364 this.cachedHelpFiles.delete(path);
365 }
366 }
367 }
368
369 // create a new help panel
370 public makeNewHelpPanel(panel?: vscode.WebviewPanel): HelpPanel {

Callers 2

refreshMethod · 0.45
_handleCommandMethod · 0.45

Calls 2

keysMethod · 0.80
deleteMethod · 0.80

Tested by

no test coverage detected