Skip to content

[Feat]: allow code cli to read from stdin as the vscode one #5693

Closed as not planned
@felipecrs

Description

@felipecrs

What is your suggestion?

The code cli which comes with the VS Code's own server implementation (like Remote - WSL or Remote - Containers) allows the following:

echo 'text from stdout' | code -
Code_H4dwcVrXAz.mp4

code-server's code cli fails with:

$ echo 'text from stdout' | code -
[2022-10-24T15:13:30.253Z] error Unknown option -

Why do you want this feature?

It's very useful so I can use the editor to analyze output of long-running commands like docker logs -f.

Are there any workarounds to get this functionality today?

I tried but I did not find any.

Are you interested in submitting a PR for this?

No plans.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementSome improvement that isn't a feature

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions