Fixed editors.component close-tab when 1 file remains
This commit is contained in:
parent
a0914e8096
commit
79adb86d25
@ -274,7 +274,7 @@ export class EditorsComponent {
|
||||
if (editorComponent.editor.session !== file.session) continue;
|
||||
|
||||
let targetFile = this.filesService.getPreviousFile(file.path)
|
||||
if (targetFile) {
|
||||
if (targetFile && (targetFile.path !== message.filePath)) {
|
||||
editorComponent.assignSession(targetFile);
|
||||
if (activeComponent == editorComponent) {
|
||||
this.editorsService.miniMapView.cloneSession(targetFile);
|
||||
|
Loading…
Reference in New Issue
Block a user