Skip to content

Windows: unable to bring window to front even when trying to steal focus #251849

Open
@StrailerPark

Description

@StrailerPark
  • VS Code Version: 1.101.0
  • OS Version: Windows 11 Pro (26100.4349)

Steps to Reproduce:

  1. I am developing a vscode extension. The VSCode extension spawns a child process, and debugs said process. In windows I see that after I hit the breakpoint, the vscode can not become the current foreground windows, and only flashes on the windows status bar.
    (same repro as this old issue)

  2. I have verified the breakpoint in the below image hits in the F1 debugger, and routes down correctly into the electron API.
    Image

There are several solutions suggested on the electron issues board that could solve the problem for vscode. The final suggested solution, in short: minimize, show, setAlwaysOnTop, THEN focus.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugconfirmedIssue has been confirmed by VS Code Team memberelectronIssues and items related to Electronhelp wantedIssues identified as good community contribution opportunitiesupstreamIssue identified as 'upstream' component related (exists outside of VS Code)workbench-windowWindow management

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions