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

Function fetchFile

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

Source from the content-addressed store, hash-verified

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 {
121 let cache = global["_workspaceCache"][workspace];
122 file = getRelativePath(file, workspace);
123 return cache && cache[file];
124}
125
126var fetchWorkspace = function(workspace:string) {
127 return global["_workspaceCache"][workspace];

Callers 1

getFunction · 0.85

Calls 1

getRelativePathFunction · 0.85

Tested by

no test coverage detected