(path: string, content: string)
| 19 | ); |
| 20 | }, |
| 21 | writeFile(path: string, content: string) { |
| 22 | if (!path.startsWith("/")) path = "/" + path; |
| 23 | |
| 24 | // const uri = vscode.Uri.from({ scheme: "memfs", path: path }); |
| 25 | const uri = vscode.Uri.from({ scheme: "memfs", path: path }); |
| 26 | |
| 27 | fs.writeFile(uri, encoder.encode(content), { |
| 28 | create: true, |
| 29 | overwrite: true, |
| 30 | }); |
| 31 | }, |
| 32 | readFile(path: string): string { |
| 33 | if (!path.startsWith("/")) path = "/" + path; |
| 34 |