(uri: URI, edits: Edit[], content: string)
| 36 | }, |
| 37 | |
| 38 | async applyEdits(uri: URI, edits: Edit[], content: string) { |
| 39 | switch (uri.scheme) { |
| 40 | case 'file': |
| 41 | const result = jsonc.applyEdits(content, edits); |
| 42 | await writeLocalFile(uri.fsPath, result); |
| 43 | break; |
| 44 | default: |
| 45 | throw new Error(`Unsupported scheme: ${uri.toString()}`); |
| 46 | } |
| 47 | } |
| 48 | }; |
| 49 | |
| 50 | export class CLIHostDocuments implements Documents { |
nothing calls this directly
no test coverage detected