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
v1.46 New file/window menu items not functional with no window open #99998
Comments
Duplicate of #99831 but this one has a better title and clearer description, and reports the problem occurring from menu options as well as keybindings. I was not able to reproduce it on Windows, so it seems to be macOS-specific. |
Yep it's the same issue. I'm afraid I didn't find that one while searching for duplicates. |
I haven't found out the cause yet, but I can repro. |
Looks like it was introduced by this change. 5356ceb win is undefined when no window is open vscode/src/vs/platform/menubar/electron-main/menubar.ts Lines 116 to 119 in 5356ceb
|
Is this still unresolved? I can't seem to reproduce this issue. |
@sbatten thanks for the fix, yes this was a regression I introduced. I filed electron/electron#24144 because the TypeScript types are not catching this issue. |
Versions
Overview
In v1.46, the new file & new window menu items do not do anything when all windows are closed. The behaviour is the same with the keyboard shortcuts (Cmd+N, Cmd+Shift+N).
The bug is not present in v1.45.1.
The bug is present in the insiders build.
Steps to Reproduce
Expected Result
Actual Result
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: