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
Toast the URI of the current editor with the Ctrl/⌘+KK keychord.
Perform a rename of the current editor with the Ctrl/⌘+KR keychord.
Open a workspace with two files: a.txt and b.txt. Toggle the Explorer view. You do not see the file tree. This is important not to involve the SelectionService.
Select a.txt and use the keychord to toast the current URI. It works.
Select b.txt and 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. Rename b.txt to c.txt. It works. The current editor in the UI is c.txt after the rename.
Use the keychord to toast the current editor URI. It prints a.txt, although c.txt is the current one in the UI. It's a bug.
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:
a.txt
andb.txt
. Toggle the Explorer view. You do not see the file tree. This is important not to involve theSelectionService
.a.txt
and use the keychord to toast the current URI. It works.b.txt
and use the same keychord to toast the current URI. It works.b.txt
, use the other keychord to rename the editor. Renameb.txt
toc.txt
. It works. The current editor in the UI isc.txt
after the rename.a.txt
, althoughc.txt
is the current one in the UI. It's a bug.current_editor_bug_after_rename.mp4
Additional Information
The text was updated successfully, but these errors were encountered: