Skip to content

Commit

Permalink
fix: removeEditorWindow does not compare title
Browse files Browse the repository at this point in the history
  • Loading branch information
liujuping authored and JackLian committed Apr 26, 2023
1 parent c3d75b2 commit 9fd28ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/workspace/src/workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 9fd28ef

Please sign in to comment.