explorer: fixed 'doOpenNode' implementation #8659
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What it does
Fixes: #8658
The following pull-request addresses the bug present in the
explorer
(navigator) when no selection is present, and the ENTER keybinding to open a node is triggered. Since the root node is not visible, the explorer ends up in a state where the tree is hidden producing a negative user-experience.In order to fix the issue, the
doOpenNode
implementation for theFileNavigatorModel
is updated to only attempt to open nodes which are not explicitly hidden since they cannot be opened.master:
pull-request:
How to test
theia
)npm scripts
)explorer
(ex: using the collapse-all command or toolbar item)Review checklist
Reminder for reviewers
Signed-off-by: vince-fugnitto [email protected]