Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Activate pinned editor only if already active #9346

Conversation

colin-grant-work
Copy link
Contributor

What it does

Fixes #9268 by preventing a newly pinned editor widget from activating when it was not previously the active widget.

How to test

  1. Open preferences UI, search for editor.enablePreview and ensure that the preference is set to to true (default).
  2. Open the file navigator and single-click on a file.
  3. Observe that it opens with its title italicized. Leave it in that state!
  4. Return to preferences UI and change editor.enablePreview to false.
  5. Observe that the editor tab changes to Roman type, but is not activated.

Review checklist

Reminder for reviewers

Signed-off-by: Colin Grant [email protected]

@colin-grant-work colin-grant-work added bug bugs found in the application editor-preview issues that are related to the editor-preview labels Apr 13, 2021
@colin-grant-work colin-grant-work force-pushed the bugfix/preview-activate-on-pinned branch from 65cc6d1 to 302f87c Compare April 13, 2021 21:50
Copy link
Member

@vince-fugnitto vince-fugnitto left a comment

Choose a reason for hiding this comment

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

@colin-grant-work thank you, I confirmed that it successfully fixes the use-case 👍

@colin-grant-work colin-grant-work merged commit ab5fef4 into eclipse-theia:master Apr 15, 2021
@colin-grant-work colin-grant-work deleted the bugfix/preview-activate-on-pinned branch April 15, 2021 22:02
@vince-fugnitto vince-fugnitto added this to the 1.13.0 milestone Apr 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bugs found in the application editor-preview issues that are related to the editor-preview
Projects
None yet
Development

Successfully merging this pull request may close these issues.

preferences: toggling preference results in incorrect behavior
2 participants