(filePath: string, text: string, version?: number)
| 220 | } |
| 221 | |
| 222 | async didChange(filePath: string, text: string, version?: number) { |
| 223 | const uri = await toUri(filePath); |
| 224 | const v = version !== undefined ? version : ++this.currentVersion; |
| 225 | await this.sendNotificationToBoth( |
| 226 | 'textDocument/didChange', |
| 227 | { |
| 228 | textDocument: {uri, version: v}, |
| 229 | contentChanges: [{text}], |
| 230 | }, |
| 231 | filePath, |
| 232 | ); |
| 233 | } |
| 234 | |
| 235 | async didClose(filePath: string) { |
| 236 | const uri = await toUri(filePath); |
no test coverage detected