Skip to content

Launch the app via open cmd on macOSย #102975

Closed
@deepak1556

Description

@deepak1556

Currently some users hit an issue where the app launched from command line doesn't have an active dock icon, menu and the window cannot be focused.

Thanks for help from @MarshallOfSound with the debugging we were able to narrow the source of issue. The cli wrapper is a node process which then spawns the actual app https://github.com/microsoft/vscode/blob/master/src/vs/code/node/cli.ts#L331 , this doesn't work well with entitlements. Can read for some background about inherited entitlements #95062 (comment) .

The underlying issue is not known here but we expect some sort of malformed state has been entered by the entitled app. To fix this we can adjust the spawn callsite with a call to macOS open cmd.

Metadata

Metadata

Labels

engineeringVS Code - Build / issue tracking / etc.insiders-releasedPatch has been released in VS Code InsidersmacosIssues with VS Code on MAC/OS Xon-testplan

Type

No type

Projects

Status

โœ”๏ธ Done / Deferred

Relationships

None yet

Development

No branches or pull requests

Issue actions