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

Function saveFile

src/runtime/eveSource.ts:112–117  ·  view source on GitHub ↗
(file:string, content:string, workspace:string)

Source from the content-addressed store, hash-verified

110//---------------------------------------------------------
111
112var saveFile = function(file:string, content:string, workspace:string) {
113 let cache = global["_workspaceCache"][workspace];
114 cache = global["_workspaceCache"][workspace] = {};
115 file = getRelativePath(file, workspace);
116 cache[file] = content;
117}
118
119// If we're running on the client, we use the global _workspaceCache, created in the build phase or served by the server.
120var fetchFile = function(file:string, workspace:string):string|undefined {

Callers 1

setFunction · 0.85

Calls 1

getRelativePathFunction · 0.85

Tested by

no test coverage detected