MCPcopy Create free account
hub / github.com/Snapchat/Valdi / registerDiskFile

Method registerDiskFile

compiler/companion/src/Workspace.ts:221–225  ·  view source on GitHub ↗
(fileName: string, absoluteDiskPath: string)

Source from the content-addressed store, hash-verified

219 this.importPathResolver.registerAlias(resolvedPath);
220 this.project.setFileContentAtResolvedPath(resolvedPath, fileContent);
221 }
222
223 registerDiskFile(fileName: string, absoluteDiskPath: string): void {
224 const resolvedPath = this.project.resolvePath(fileName);
225 this.importPathResolver.registerAlias(resolvedPath);
226 this.project.setFileFromDiskAtResolvedPath(resolvedPath, absoluteDiskPath);
227 }
228

Callers

nothing calls this directly

Calls 3

registerAliasMethod · 0.80
resolvePathMethod · 0.45

Tested by

no test coverage detected