(fileId: number)
| 312 | } |
| 313 | |
| 314 | private removeFile(fileId: number) { |
| 315 | const file = this.multifileService.removeFileByFileId(fileId); |
| 316 | if (file) { |
| 317 | if (file.isOpen) { |
| 318 | const editor = this.hub.getEditorById(file.editorId); |
| 319 | if (editor) { |
| 320 | editor.container.close(); |
| 321 | } |
| 322 | } |
| 323 | } |
| 324 | |
| 325 | this.refresh(); |
| 326 | } |
| 327 | |
| 328 | private removeFileByFilename(filename: string) { |
| 329 | const file = this.multifileService.removeFileByFilename(filename); |
no test coverage detected