Microsoft/vscode

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

Open

#183 441 ouverte le 25 mai 2023

Voir sur GitHub
 (4 commentaires) (0 réactions) (1 assigné)TypeScript (10 221 forks)batch import
bugcustom-editorshelp wanted

Métriques du dépôt

Stars
 (74 848 stars)
Métriques de merge PR
 (Merge moyen 11h 43m) (1 000 PRs mergées en 30 j)

Description

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.

Guide contributeur