Skip to content

Conversation

kittaakos
Copy link
Contributor

Motivation

Fixes duplicate editor tabs due to bogus widget identity comparison in the widget manager.

Change description

  • Removed @theia/editor-preview,
  • Patched opener options when repairing layout on start, and
  • Compare widget keys with deepEquals instead of string equal.

Other information

Closes #1054

Reviewer checklist

  • PR addresses a single concern.
  • The PR has no duplicates (please search among the Pull Requests before creating one)
  • PR title and description are properly filled.
  • Docs have been added / updated (for bug fixes / features)

@kittaakos kittaakos requested review from fstasi and per1234 June 20, 2022 14:40
@kittaakos kittaakos marked this pull request as ready for review June 20, 2022 15:30
Copy link
Contributor

@AlbyIanna AlbyIanna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code's fine to me.

@per1234 per1234 added topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project labels Jun 21, 2022
Copy link
Contributor

@per1234 per1234 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes #1054 for me.

Thanks Akos!

Copy link
Contributor

@fstasi fstasi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

 - Removed `@theia/editor-preview`,
 - Patched opener options when repairing layout on start, and
 - Compare widget keys with deepEquals instead of string equal.

Signed-off-by: Akos Kitta <[email protected]>
@kittaakos kittaakos merged commit 84109e4 into main Jun 22, 2022
@kittaakos kittaakos deleted the #1054-deepEquals branch June 22, 2022 08:11
This was referenced Jul 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
4 participants