MCPcopy
hub / github.com/microsoft/vscode-js-debug / readfile

Function readfile

src/common/fsUtils.ts:115–121  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

113}
114
115export function readfile(path: string): Promise<string> {
116 return new Promise(cb => {
117 fs.readFile(path, 'utf8', async (err, content) => {
118 cb(err ? '' : content);
119 });
120 });
121}
122
123export const writeFile = util.promisify(fs.writeFile);
124

Callers 3

breakpointsTest.tsFile · 0.90
findScriptsFunction · 0.90
createMetadataForFileFunction · 0.90

Calls 1

readFileMethod · 0.65

Tested by

no test coverage detected