(file:string, content:string, workspace:string)
| 110 | //--------------------------------------------------------- |
| 111 | |
| 112 | var 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. |
| 120 | var fetchFile = function(file:string, workspace:string):string|undefined { |
no test coverage detected