Skip to content

code from terminal not transferring focus to a vs code window on macOS #139215

@vdovhanych

Description

@vdovhanych

When opening project from the macOS terminal with code . vs code opens in the background and focus in not transferred to that window. This also happens if you already have project open in and it wont bring focus to that window.

Does this issue occur when all extensions are disabled?: Yes/No
Yes

  • VS Code Version:
    Version: 1.63.1 (Universal)
    Commit: fe719cd
    Date: 2021-12-14T02:13:13.580Z (1 day ago)
    Electron: 13.5.2
    Chromium: 91.0.4472.164
    Node.js: 14.16.0
    V8: 9.1.269.39-electron.0
    OS: Darwin arm64 21.2.0
  • OS Version:
    macOS Version 12.1 (21C52)

Steps to Reproduce:

  1. Open project from default macOS terminal with code . in the project directory. Focus stays on terminal and is not transfer to vscode window (opens in the background)
Screen.Recording.2021-12-15.at.17.02.40.mov

Metadata

Metadata

Labels

*out-of-scopePosted issue is not in scope of VS Codeinfo-neededIssue requires more information from postermacos-montereyworkbench-cliVS Code Command line issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions