MCPcopy Index your code
hub / github.com/devcontainers/cli / readDocument

Method readDocument

src/spec-configuration/editableFiles.ts:57–68  ·  view source on GitHub ↗
(uri: URI)

Source from the content-addressed store, hash-verified

55 }
56
57 async readDocument(uri: URI) {
58 switch (uri.scheme) {
59 case CLIHostDocuments.scheme:
60 try {
61 return (await this.fileHost.readFile(uriToFsPath(uri, this.fileHost.platform))).toString();
62 } catch (err) {
63 return undefined;
64 }
65 default:
66 throw new Error(`Unsupported scheme: ${uri.toString()}`);
67 }
68 }
69
70 async applyEdits(uri: URI, edits: Edit[], content: string) {
71 switch (uri.scheme) {

Callers

nothing calls this directly

Calls 2

uriToFsPathFunction · 0.90
readFileMethod · 0.65

Tested by

no test coverage detected