()
| 526 | } |
| 527 | |
| 528 | async cleanup() { |
| 529 | for (const uri of this.openedFiles) { |
| 530 | await this.closeFile(uri); |
| 531 | } |
| 532 | this.openedFiles = []; |
| 533 | const files = [...this.fileManager.getFiles()]; |
| 534 | for (const file of files) { |
| 535 | await fs.rm(file, {force: true}); |
| 536 | await this.lspClient.didChangeWatchedFiles(file, 3); |
| 537 | } |
| 538 | await this.fileManager.cleanup(); |
| 539 | } |
| 540 | |
| 541 | async run(name: string, content: string, callback: (filePath: string) => Promise<void>) { |
| 542 | try { |