Microsoft/vscode

Focus on already opened editor instead of default editor provided by extension

Offen

#183.441 geöffnet am 25.05.2023

 (4 Kommentare) (0 Reaktionen) (1 zugewiesene Person)TypeScript (39.847 Forks)batch import
bugcustom-editorshelp wanted

Repository-Metriken

Stars
 (184.936 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

Sometimes I open a file with the text editor instead of a customEditor. In this case, when this editor is still open and that I click in Explorer view on the file, I would like to have the focus on the text editor as there is already an opened editor for it.

Currently it is opening another editor for the same file:

openingWithAnotherEditorThanTheAlreadyOpenedOne

I'm wondering if it would make sense to even remember the last type of editor used for each file so that it will reopen will last editor used even if editor is still opened or not.

Contributor Guide