MCPcopy Index your code
hub / github.com/witheve/Eve / loadWorkspace

Method loadWorkspace

src/ide.ts:2201–2212  ·  view source on GitHub ↗
(directory:string, files:{[filename:string]: string})

Source from the content-addressed store, hash-verified

2199 }
2200
2201 loadWorkspace(directory:string, files:{[filename:string]: string}) {
2202 // @FIXME: un-hardcode root to enable multiple WS's.
2203 this._fileCache = files;
2204 if(this.local) {
2205 // Mix in any saved documents in localStorage.
2206 let saves = JSON.parse(localStorage.getItem("eve-saves") || "{}");
2207 for(let save in saves) {
2208 files[save] = saves[save];
2209 }
2210 }
2211 this.navigator.loadWorkspace("root", directory, files);
2212 }
2213
2214 loadDocument(generation:number, text:string, packed:any[], attributes:{[id:string]: any|undefined}, css:string) {
2215 if(generation < this.generation && generation !== undefined) return;

Callers 2

createDocumentMethod · 0.95
initIDEFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected