-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In VSC 1.40, window titles are missing in accessibility apps #84195
Comments
@deepak1556 we do give the window a title here: vscode/src/vs/code/electron-main/window.ts Line 129 in 15bfc40
I am not sure why "Untitled" would show up, but possibly a E6 regression in this case. @garyking do you see the same with other electron app, e.g. try Electron Fiddle: https://electronjs.org/fiddle |
Also seeing the same regression, except I'm using Contexts instead of Witch. |
@OliverJAsh @garyking do you see the same when you run a different Electron application such as Electron Fiddle: https://electronjs.org/fiddle |
Also, seeing this with my hammerspoon scripts. began with 1.40.0 |
In the Mac Accessibility API, Witch retrieves the I assume that screen readers used by the blind, etc. will also have trouble navigating VSC windows, because of this issue. |
I'm seeing this in Witch too. |
We do set the title in VSCode in 2 places:
I am not sure if there is a third place where we have to call something. What I wonder: are maybe certain characters not allowed in this value for screen readers? Dos it reproduce if you configure window.title to a fixed value such as: |
I just tried that with the title |
Adding "help wanted" if someone wants to chime in and has an idea. |
Is |
Well, if so it would need to be some API that we can use. I do not recall any explicit API in Electron that would set this but would assume the window title would just work. |
Electron sources are here: https://github.com/atom/electron but they depend on all of Chromium too.... |
I had this bug with Contexts, my other applications were fine. I reverted to 1.39 and it's working again. I confirm that this bug was introduced by 1.40. |
If someone has time, please consider finding the VSCode commit that introduced this bug, using |
@garyking you should be able to by just changing our error in the build scripts, I think it would still work. |
I removed the check for the installed Node version in |
Can you share? |
I assume the issue is a combination of things with VSC and Electron, since the issue does not reproduce in other Electron apps. |
In the meantime, you can use ^W to switch windows inside of VSCode. |
I use Contexts so suffer as well... BUT I used to use HyperSwitch - reinstalled and tested it - still shows the correct titles with VSC 1.4. |
Have same problem with Contexts. |
This appears to be a regression upstream with Electron. I have submitted electron/electron#21462 with a potential fix, so hopefully that can land, be backported, and then we can update VS Code with the fixed version. To summarise the problem, Electron's Chromium 75 changed to Apple's newer accessibility API for window titles in the super class that This is a regression that has been present since Electron 6.0.0 (the first release including the Chromium change above). |
@jryans thanks a lot ❤️ |
@jryans Thank You! One thing I can't figure out is how one application (Hyper-Switch) is able to show the titles and another (Contexts and more..) cannot. |
Hard to be sure without reversing each app... but at least on my system, the window title was correct in window managers such as the built-in Mission Control view but empty via accessibility APIs. So, Contexts and other affected apps are presumably using accessibility, while HyperSwitch must be using some other data source perhaps like Mission Control does. |
@yoadsn |
The problem with that method is that it doesn't allow interactions with the window—closing, minimizing, etc. must be done via Accessibility. So for our app Witch, it's a non-solution, unfortunately. -rob. |
@rg-manytricks Huge fan of your app - use it constantly - hoping the upstream fix resolves this. It's really frustrating. |
confirm, seeing titles in the latest insider build. |
FWIW, this also affects conditional activation groups in BetterTouchTool. |
Issue Type: Bug
I use a program called Witch, on my Mac, to navigate between windows. It is useful for jumping to a specific VS Code window. The window's title appears in Witch, which is usually the workspace for that window.
However, since upgrading to VS Code 1.40.0, all window titles only appear as "(Untitled)". Was there a change regarding this recently? Perhaps related to Electron? This issue seems to affect any Mac app that relies on OS accessibility features to access a window's title.
To reproduce this issue, you must be using VSC 1.40, and have at least two windows open in VSC. Their titles will then appear as "(Untitled)" in any of a number of Mac accessibility apps, including Witch. I already tested with all extensions disabled. I tested with latest Insiders as of 2019-11-08. The issue does not exist in VSC 1.39.2.
This setting must be enabled to cause this issue:
I'm on MacOS 10.14.6 (18G1012).
Screenshot:
VS Code version: Code 1.40.0 (86405ea, 2019-11-06T17:09:34.601Z)
OS version: Darwin x64 18.7.0
The text was updated successfully, but these errors were encountered: