Skip to content
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

New window opens behind existing windows #149394

Closed
tschaub opened this issue May 12, 2022 · 6 comments · Fixed by #150530
Closed

New window opens behind existing windows #149394

tschaub opened this issue May 12, 2022 · 6 comments · Fixed by #150530
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug electron Issues and items related to Electron important Issue identified as high-priority insiders-released Patch has been released in VS Code Insiders regression Something that used to work is now broken verified Verification succeeded workbench-window Window management
Milestone

Comments

@tschaub
Copy link

tschaub commented May 12, 2022

Issue Type: Bug

  • run code one in the terminal where one is the path to an existing directory
  • see VSCode open the workspace as expected
  • run code two in the terminal where two is the path to an existing directory
  • focus changes back to VSCode, but showing the window for project one instead of project two

Here is a movie of the experience:

open-behind

In previous versions of VSCode, when opening a new project with code, the new window would show up above any existing windows. This is what I expected to happen.

VS Code version: Code 1.67.1 (da15b6f, 2022-05-06T12:37:14.619Z)
OS version: Darwin arm64 20.6.0
Restricted Mode: No

System Info
Item Value
CPUs Apple M1 (8 x 24)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 2, 2, 2
Memory (System) 16.00GB (2.93GB free)
Process Argv one --crash-reporter-id 89d47731-c956-41d6-bf2f-17af04d06d0e
Screen Reader no
VM 0%
Extensions (17)
Extension Author (truncated) Version
vscode-tailwindcss bra 0.8.3
vscode-eslint dba 2.2.2
copilot Git 1.19.5865
go gol 0.33.0
terraform has 2.22.0
vscode-env Iro 0.1.0
jsonnet-language lia 1.0.0
vscode-docker ms- 1.22.0
python ms- 2022.6.2
vscode-pylance ms- 2022.5.1
remote-containers ms- 0.234.0
remote-ssh ms- 0.80.0
remote-ssh-edit ms- 0.80.0
excalidraw-editor pom 2.0.16
code-spell-checker str 2.1.11
svelte-vscode sve 105.16.0
cython tcw 0.1.0
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyl392:30443607
pythontb:30283811
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
vscod805:30301674
pythonvspyt200:30340761
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
vsc1dst:30438360
pythonvs932:30410667
wslgetstarted:30449410
pythonvsnew555:30457759
vscscmwlcmt:30465135
cppdebugcf:30475217
vsclangdf:30486550

@tschaub
Copy link
Author

tschaub commented May 18, 2022

Looks similar to #929 and #13042.

@sylann
Copy link

sylann commented May 25, 2022

Same issue.
On Mac OS, VsCode 1.67

How to reproduce:

  1. Use shortcut to open new window CMD + SHIFT + N
  2. Use shortcut to open new file/folder CMD + O

The selected file/folder is now opened in the previously focused vscode window instead of the newly opened one.

To solve the problem, you have to think to click in the newly opened window.
When you do so, you see the focus takes effect, proving the window was not actually focused
(EDIT: What is confusing is that you can see the cursor blinking inside of the editor of the new window, even though it is not focused)

I can tell this is a relatively new issue (1 or 2 months max), because I'm doing the procedure above almost every day and it has been pissing me off since then (sorry, but truly annoying).

@bpasero
Copy link
Member

bpasero commented May 27, 2022

Sounds a bit like #149067 or #149043

@bpasero bpasero added this to the May 2022 milestone May 27, 2022
@bpasero
Copy link
Member

bpasero commented May 27, 2022

Do you have "window.newWindowDimensions": "maximized" configured?

@bpasero bpasero added bug Issue identified by VS Code Team member as probable bug important Issue identified as high-priority electron Issues and items related to Electron workbench-window Window management labels May 27, 2022
@bpasero
Copy link
Member

bpasero commented May 27, 2022

This is a regression from electron/electron#33536

@bpasero bpasero added the regression Something that used to work is now broken label May 27, 2022
@VSCodeTriageBot VSCodeTriageBot added the unreleased Patch has not yet been released in VS Code Insiders label May 27, 2022
@tschaub
Copy link
Author

tschaub commented May 27, 2022

Thanks for the fix!

@VSCodeTriageBot VSCodeTriageBot added insiders-released Patch has been released in VS Code Insiders and removed unreleased Patch has not yet been released in VS Code Insiders labels May 30, 2022
@tanhakabir tanhakabir added the verified Verification succeeded label Jun 2, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Jul 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug electron Issues and items related to Electron important Issue identified as high-priority insiders-released Patch has been released in VS Code Insiders regression Something that used to work is now broken verified Verification succeeded workbench-window Window management
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants