MCPcopy
hub / github.com/VSCodeVim/Vim / writeFileAsync

Function writeFileAsync

src/platform/browser/fs.ts:92–98  ·  view source on GitHub ↗
(
  path: string,
  content: string,
  encoding: BufferEncoding,
)

Source from the content-addressed store, hash-verified

90}
91
92export async function writeFileAsync(
93 path: string,
94 content: string,
95 encoding: BufferEncoding,
96): Promise<void> {
97 return vscode.workspace.fs.writeFile(vscode.Uri.parse(path), Buffer.from(content));
98}
99
100export async function accessAsync(path: string, mode: number) {
101 // no op in nodeless

Callers

nothing calls this directly

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected