(
path: string,
content: WriteFileContent,
options: WriteFileOptions = {},
)
| 224 | // --- Mutations --------------------------------------------------- |
| 225 | |
| 226 | writeFile( |
| 227 | path: string, |
| 228 | content: WriteFileContent, |
| 229 | options: WriteFileOptions = {}, |
| 230 | ): Promise<void> { |
| 231 | return withSpan( |
| 232 | this.#ws.observer, |
| 233 | "workspace.fs.writeFile", |
| 234 | { "workspace.fs.path": path }, |
| 235 | () => this.#ws.fs.writeFile(path, content, options), |
| 236 | ); |
| 237 | } |
| 238 | |
| 239 | mkdir(path: string, options: MkdirOptions = {}): Promise<void> { |
| 240 | return withSpan( |