fix: removeEditorWindow does not compare title

This commit is contained in:
liujuping 2023-04-26 10:57:28 +08:00 committed by 林熠
parent c3d75b27da
commit 9fd28efd0e

View File

@ -192,8 +192,8 @@ export class Workspace implements IWorkspace {
this.emitChangeWindow();
}
removeEditorWindow(resourceName: string) {
const index = this.windows.findIndex(d => (d.resource?.name === resourceName && d.title));
removeEditorWindow(resourceName: string, title: string) {
const index = this.windows.findIndex(d => (d.resource?.name === resourceName && d.title === title));
this.remove(index);
}