Skip to content

vscode-server cli 'code' tool does not report an error when called outside terminal #313012

@AnrDaemon

Description

@AnrDaemon

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

  • VS Code Version: 1.116
  • OS Version: Windows 10, Ubuntu 22.04

Steps to Reproduce:

  1. Run the following command in the terminal:
    .vscode-server/bin/*/bin/remote-cli/code --status ; echo $?

The answer is

$ .vscode-server/bin/*/bin/remote-cli/code --status 2> /dev/null ; echo $?
Command is only available in WSL or inside a Visual Studio Code terminal.
0

Which leaves literally no way to automatically find out that the command was not used correctly.

It absolutely should return a nonzero exit code.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions