(uri: URI)
| 55 | } |
| 56 | |
| 57 | async readDocument(uri: URI) { |
| 58 | switch (uri.scheme) { |
| 59 | case CLIHostDocuments.scheme: |
| 60 | try { |
| 61 | return (await this.fileHost.readFile(uriToFsPath(uri, this.fileHost.platform))).toString(); |
| 62 | } catch (err) { |
| 63 | return undefined; |
| 64 | } |
| 65 | default: |
| 66 | throw new Error(`Unsupported scheme: ${uri.toString()}`); |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | async applyEdits(uri: URI, edits: Edit[], content: string) { |
| 71 | switch (uri.scheme) { |
nothing calls this directly
no test coverage detected