MCPcopy
hub / github.com/witheve/Eve / reset

Method reset

src/ide.ts:758–769  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

756 }
757
758 reset() {
759 this.history.position = 0;
760 this.history.items = [];
761 this.history.transitioning = true;
762 this.reloading = true;
763 this.cm.setValue("");
764 for(let span of this.getAllSpans()) {
765 span.clear();
766 }
767 this.reloading = false;
768 this.history.transitioning = false;
769 }
770
771 // This is a new document and we need to rebuild it from scratch.
772 loadDocument(id:string, text:string, packed:any[], attributes:{[id:string]: any|undefined}) {

Callers 12

microReact.jsFile · 0.45
CodeMirrorFunction · 0.45
codemirror.jsFile · 0.45
pollFunction · 0.45
endOperation_W2Function · 0.45
dispatchKeyFunction · 0.45
onFocusFunction · 0.45
handleQueryFunction · 0.45
onPromptKeyUpFunction · 0.45
onPromptKeyDownFunction · 0.45
onPromptCloseFunction · 0.45
loadFileMethod · 0.45

Calls 3

getAllSpansMethod · 0.95
setValueMethod · 0.65
clearMethod · 0.65

Tested by

no test coverage detected