Skip to content

code --status doesn't work if your shell is PowerShell #40228

Closed
@rkeithhill

Description

  • VSCode Version: 1.19.0
  • OS Version: Windows 10 FCU

Steps to Reproduce:

  1. Open up the integrated terminal (VSCode on Windows) - defaults to PowerShell
  2. Execute: code --status

Outputs:

7:98ms> code --status

[main 1:37:36 PM] SyntaxError: Unexpected token S in JSON at position 30814
    at JSON.parse (<anonymous>)
    at ChildProcess.<anonymous> (C:\Program Files\Microsoft VS Code\resources\app\out\vs\code\electron-main\main.js:132:425)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:194:7)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)

Reproduces without extensions: NA - I get the same behavior if I start CMD or PowerShell directly and run code --status.

FYI, code on my system resolves to C:\Program Files\Microsoft VS Code\bin\code.cmd.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugcandidateIssue identified as probable candidate for fixing in the next releaseverifiedVerification succeededwindowsVS Code on Windows issuesworkbench-diagnosticsGeneral VS Code built-in diagnostic issues

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions