-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Open
Description
Bug Description:
When I rename a file, and the Explorer view is not visible, EditorManager#currentEditor provides an incorrect result after the rename.
Steps to Reproduce:
Use the additional custom commands from my fork to reproduce the defect: master...kittaakos:theia:current-editor-after-rename
There are two commands:
- Toast the URI of the current editor with the Ctrl/⌘+K K keychord.
- Perform a rename of the current editor with the Ctrl/⌘+K R keychord.
- Open a workspace with two files:
a.txtandb.txt. Toggle the Explorer view. You do not see the file tree. This is important not to involve theSelectionService. - Select
a.txtand use the keychord to toast the current URI. It works. - Select
b.txtand use the same keychord to toast the current URI. It works. - When the active editor is
b.txt, use the other keychord to rename the editor. Renameb.txttoc.txt. It works. The current editor in the UI isc.txtafter the rename. - Use the keychord to toast the current editor URI. It prints
a.txt, althoughc.txtis the current one in the UI. It's a bug.
current_editor_bug_after_rename.mp4
Additional Information
- Operating System:
- Theia Version: b28c8b9
Metadata
Metadata
Assignees
Labels
No labels