(fileId: number)
| 415 | } |
| 416 | |
| 417 | private editFile(fileId: number) { |
| 418 | const file = this.multifileService.getFileByFileId(fileId); |
| 419 | if (file) { |
| 420 | if (!file.isOpen) { |
| 421 | const dragConfig = this.getConfigForNewEditor(file); |
| 422 | file.isOpen = true; |
| 423 | |
| 424 | this.hub.addInEditorStackIfPossible(dragConfig); |
| 425 | } else { |
| 426 | const editor = this.hub.getEditorById(file.editorId); |
| 427 | this.hub.activateTabForContainer(editor?.container); |
| 428 | } |
| 429 | |
| 430 | this.sendChangesToAllEditors(); |
| 431 | } |
| 432 | } |
| 433 | |
| 434 | private async moveToInclude(fileId: number) { |
| 435 | await this.multifileService.includeByFileId(fileId); |
no test coverage detected