MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / clear

Method clear

src/components/fileTree/index.js:300–310  ·  view source on GitHub ↗

* Clear all rendered content

()

Source from the content-addressed store, hash-verified

298 * Clear all rendered content
299 */
300 clear() {
301 this.destroyChildTrees();
302
303 if (this.virtualList) {
304 this.virtualList.destroy();
305 this.virtualList = null;
306 }
307 this.container.innerHTML = "";
308 this.container.classList.remove("virtual-scroll");
309 this.entries = [];
310 }
311
312 /**
313 * Destroy the file tree and cleanup

Callers 11

loadMethod · 0.95
destroyMethod · 0.95
showFunction · 0.45
hideLspStatusFunction · 0.45
destroyChildTreesMethod · 0.45
updateMethod · 0.45
destroyMethod · 0.45
disposeFunction · 0.45
syncFilesMethod · 0.45
resetInstallStateFunction · 0.45
resetManagedServersFunction · 0.45

Calls 3

destroyChildTreesMethod · 0.95
destroyMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected