(path: string)
| 30 | }); |
| 31 | }, |
| 32 | readFile(path: string): string { |
| 33 | if (!path.startsWith("/")) path = "/" + path; |
| 34 | |
| 35 | const buffer = fs.readFile( |
| 36 | vscode.Uri.from({ scheme: "memfs", path: path }) |
| 37 | ); |
| 38 | |
| 39 | return decoder.decode(buffer); |
| 40 | }, |
| 41 | onDidChangeFile: fs.onDidChangeFile.bind(fs), |
| 42 | }; |
| 43 | }; |