code --status doesn't work if your shell is PowerShell #40228
Closed
Description
opened on Dec 14, 2017
- VSCode Version: 1.19.0
- OS Version: Windows 10 FCU
Steps to Reproduce:
- Open up the integrated terminal (VSCode on Windows) - defaults to PowerShell
- 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