Skip to content

[Enhancement] Support invoking an editor with prefilled content from the CLI. #248018

Open
@RokeJulianLockhart

Description

@RokeJulianLockhart

For issues like microsoft/vscode-markdown-tm-grammar#172, where a reproducer is expected to invoke the content of a file, I would like to provide a command to automatically do so, like:

#!/usr/bin/env sh
code 'data:text/html,<!DOCTYPE html><html><head><style>html { color-scheme: light dark; }</style></head></html>'

However, no equivalent to that appears to exist, and it merely invokes a tab with the name "<html".

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestRequest for new features or functionalityworkbench-cliVS Code Command line issuesworkbench-editorsManaging of editor widgets in workbench window

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions