You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an editor is already open (and thus restored) when Theia is started and you perform a right click in the file that belongs to that editor the context menu is almost empty, all entries that are file specific are missing. When you switch the editor or select a different file it works afterwards.
Steps to Reproduce:
Open a file (I used Blueprint to ensure it is not a issue in my application)
Click in the Navigator to give it focus
Reload the window
Open the context menu for the already preselected file in the navigator widget
Additional Information
Operating System: Windows 10, Chrome
Theia Version: 1.41.0 (Current Blueprint)
Debugging showed SelectionService.selection is not set.
The text was updated successfully, but these errors were encountered:
I did some more tests and the problem can be triggered more easily when Explorer: Auto Reveal is disabled.
The problem is, the URI passed to the event handler (UriAwareCommandHandler) is for the last active editor when the context menu for the currently selected node in the navigation widget is opened and not for the node. It looks like SelectionService.selection is not updated, since the node is already selected.
Why does the event handler use SelectionService.selection and not the uri from the node?
Bug Description:
When an editor is already open (and thus restored) when Theia is started and you perform a right click in the file that belongs to that editor the context menu is almost empty, all entries that are file specific are missing. When you switch the editor or select a different file it works afterwards.
Steps to Reproduce:
Additional Information
Debugging showed SelectionService.selection is not set.
The text was updated successfully, but these errors were encountered: