vscode: Focused view missing for text editor

Huge fan of focusedView for the window.title setting as an accessibility user. The problem is that I really need to know when the text editor is focused or not. Currently I can’t tell if I’m in the editor or the search widget for example. Could we add Text Editor as a view name in focusedView?

edit: As a clarification this would be only when the focus is actually on the text editor document itself. No search or rename widgets. Preferably those would have their own names as well, but are not as important.

About this issue

  • Original URL
  • State: closed
  • Created 10 months ago
  • Reactions: 33
  • Comments: 20 (15 by maintainers)

Commits related to this issue

Most upvoted comments

To verify:

  • add ${focusedView} to window.title
  • Focus different views (for example, the output channel, terminal, SCM)
  • Focus a text editor. You should see Text Editor in the window title.
  • Use the find widget in a text editor. You should not see Text Editor in the window title.

I think the monaco code editor exposes 2 events: onDidFocusEditorText and onDidFocusEditorWidget that would need to be brought up to the title control I guess.

Then go ahead and add a new variable as you see fit for this use case, I think there is no limits to what we can have there in terms of variables in that setting.