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

[monaco] only focus an editor if it's revealed #7903

Merged
merged 1 commit into from
May 27, 2020

Conversation

akosyakov
Copy link
Member

@akosyakov akosyakov commented May 27, 2020

What it does

How to test

  • test that different kind of editors are properly activated and receive keystrokes:
    • editor widget
    • diff editor widget
    • debug console input
    • breakpoint expression editor
    • peek reference editor
  • test that switching editors while Go to Symbol... or Go to line quick palette are opened closes the panel and gives the focus to the proper editor

Review checklist

Reminder for reviewers

Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
@akosyakov akosyakov added editor issues related to the editor monaco issues related to monaco labels May 27, 2020
@akosyakov akosyakov requested a review from AlexTugarev May 27, 2020 08:22
@kittaakos
Copy link
Contributor

Somehow, I managed to break it 😕 I extracted that part from the screencast but it is 100MB, I cannot upload it. It must be related to toggling the Explorer. After that I could not write into the editor.

Copy link
Contributor

@spoenemann spoenemann left a comment

Choose a reason for hiding this comment

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

I noticed that opening an editor from search results in the Search or Reference views does not focus the editor. Is that related to this change?

@akosyakov
Copy link
Member Author

I noticed that opening an editor from search results in the Search or Reference views does not focus the editor. Is that related to this change?

it is intended that you can navigate with keyboard between results and preview them.

@akosyakov
Copy link
Member Author

@kittaakos on Mac, I use licecap it can create small gifs

@spoenemann
Copy link
Contributor

I noticed that opening an editor from search results in the Search or Reference views does not focus the editor. Is that related to this change?

it is intended that you can navigate with keyboard between results and preview them

I would expect a preview editor in that case. Double-click on a search result should focus the respective code part. But that's unrelated to this PR, I found no other issues 👍

@kittaakos
Copy link
Contributor

I managed to break it

Because I'm an idiot and was checking a different version. I could reproduce the issue with the other version:

screencast 2020-05-27 11-50-23

but not with the changes from this PR. 👍

@kittaakos
Copy link
Contributor

I think this change fixes this too: #6298

@akosyakov
Copy link
Member Author

I think this change fixes this too: #6298

@kittaakos Should we close it? Did you verify it?

@akosyakov akosyakov merged commit 99a7aa3 into master May 27, 2020
@akosyakov akosyakov deleted the akosyakov/input-not-at-force-editor-7902 branch May 27, 2020 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editor issues related to the editor monaco issues related to monaco
Projects
None yet
Development

Successfully merging this pull request may close these issues.

input not at force editor
3 participants