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

Method dispose

src/helpViewer/helpPreviewer.ts:121–130  ·  view source on GitHub ↗
(callListener = false)

Source from the content-addressed store, hash-verified

119 // nothing to do, since file watchers keep everything updated
120 }
121 public dispose(callListener = false): void {
122 this.isPackageDir = false;
123 while(this.fileWatchers.length){
124 this.fileWatchers.pop()?.close();
125 }
126 this.isDisposed = true;
127 if(callListener){
128 this.callPreviewListener();
129 }
130 }
131
132 // Is only called once as part of the constructor
133 // It is expected that this instance will be disposed if this method returns false

Callers 3

makePreviewerListFunction · 0.95
errorListenerMethod · 0.95
manDirListenerMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected