-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[markers] Sync problem markers with active editor #8172
[markers] Sync problem markers with active editor #8172
Conversation
cf1117f
to
733063d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I verified the changes and they work well 👍
problems.autoReveal = true
:
- the marker info nodes are correctly expanded and revealed (even when the tree is collapsed)
problems.autoReveal = false
:
- the behavior is like today, there is no reveal present when switching active editors
The only drawback is that preview
editors are not revealed initially (likely since they are not active) until the editor is focused. I'm fine with this approach but just wanted to mention it works correctly in vscode.
733063d
to
67be0b7
Compare
Thank you for your review @vince-fugnitto.
I have updated the code to make sure the behavior is consistent with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder why don't we follow on initial opening, but only a change?
0b58e8f
to
8799906
Compare
8799906
to
3185325
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes work well. The correct problem markers are selected and expanded (if they are previously collapsed) when we change active editor. I also verify that unchecking problems.autoReveal
preference works correctly.
3185325
to
766839b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes work well 👍
I verified the behavior when:
- switching the preference applies the following logic correctly
problemsAutoReveal: on
:- The problem marker nodes are correctly expanded and selected when their corresponding editor or editor-preview are opened. The behavior also works well for new markers, and when the problems-view is collapsed.
problemsAutoReveal: off
:- The problem marker nodes behave like master - they are not expanded and selected when their corresponding editors are opened. End-users must explicitly expand the nodes in the tree.
766839b
to
5c63557
Compare
Fixes: eclipse-theia#7436 Reveals and expands the markers for the active editor. Added a preference `problems.autoReveal` to control this behavior. Signed-off-by: Muhammad Anas Shahid <muhammad.shahid@ericsson.com>
5c63557
to
350c9b2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code-wise looks good
What it does
Fixes: #7436
Reveals and expands the markers for the active editor.
Added a preference
problems.autoReveal
to control this behavior.Signed-off-by: Muhammad Anas Shahid muhammad.shahid@ericsson.com
How to test
problems.autoReveal
uncheck it, and check to see if while changing the active editors the markers are expanded or selected. (in ideal case, they should not be expanded or selected)Review checklist
Reminder for reviewers