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

Method dispose

src/helpViewer/index.ts:292–312  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

290
291 // used to close files, stop servers etc.
292 public dispose(): void {
293 const children = [
294 this.helpProvider,
295 this.aliasProvider,
296 this.packageManager,
297 this.treeViewWrapper,
298 ...this.helpPanels,
299 ...this.previewProviders
300 ];
301 for (const child of children) {
302 if (
303 child &&
304 'dispose' in child &&
305 typeof child.dispose === 'function'
306 ) {
307 try {
308 child.dispose();
309 } catch (e) {}
310 }
311 }
312 }
313
314 // refresh cached help info
315 public async refresh(refreshTreeView: boolean = false): Promise<boolean> {

Callers

nothing calls this directly

Calls 1

disposeMethod · 0.65

Tested by

no test coverage detected