-
Notifications
You must be signed in to change notification settings - Fork 29.5k
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
Empty window opened on new window command #128745
Comments
Can you provide the output of |
@deepak1556 i can't reproduce it again today. Maybe some extension is updated with fixed or something. |
Closing for now, can reopen if the issue reappears. |
I can reproduce this bug. Open vscode-log-partial.txt - contains logs right after new empty vscode window opened Hopes logs helps @deepak1556 |
Thanks for the repro! I can confirm the issue. |
Okay the issue turned out to be quite simple but has bad side effects. When launching the external terminal we try to sanitize the process environment vscode/src/vs/platform/externalTerminal/node/externalTerminalService.ts Lines 314 to 318 in 4e5d793
vscode/src/vs/base/common/processes.ts Lines 109 to 114 in 4e5d793
Since we are experimenting with the protocol used for workbench resource loading, we have put it behind an environment variable Lines 248 to 250 in 4e5d793
vscode/src/bootstrap-window.js Line 27 in 4e5d793
The sanitization of process environment for the terminal launch happens in main process and hence successive new window loads after launching external terminal fallback to But @Tyriar this seems like a bigger issue if we are sanitizing env variables in the main process, since main process serves as source of truth, successive child process launched from the main process won't get the right variables. /cc @bpasero |
@deepak1556 it's a mistake that it's applying to process.env. This line should be |
\closedWith 34419f8 |
@deepak1556 is there any chance for fix build sooner then next month proper release? I cant work across this issue in work day :-( |
You can use the insiders version https://code.visualstudio.com/insiders which is a nightly release. |
I can (and will) but this bug should have high priority for vscode and maybe release early fix, because of the nature of bug (anyone can reproduce it, execute external terminal and then File -> New Window). Seems to be a big issue for vscode and its users ;-| |
VSCode has a 4-week iteration cycle before a newer stable version is released. If there are critical bugs identified with relatively safe fixes in the first two weeks (this is a rough estimate depends on the candidate bugs that come in) after a stable release then we make a recovery patch releases. Otherwise the bug fixes just bake in the insiders for the rest of iteration before the next stable release. In this case the bug was confirmed and fixed towards the end of current iteration, it is better for the fix to iterate in the insiders as the |
Issue Type: Bug
Having opened folder in 1st window and execute "New window command" (Ctrl+Shit+N) it opend empty new window without menus, statusbar empty sidedar collapsed.
Edit: Opening from windows explorer context menu on folder "Open with Code" will open vscode window succesfully without issue.
VS Code version: Code 1.58.1 (2aeda6b, 2021-07-13T06:58:28.115Z)
OS version: Windows_NT x64 10.0.18362
Restricted Mode: No
System Info
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Extensions (44)
(5 theme extensions excluded)
A/B Experiments
The text was updated successfully, but these errors were encountered: