Skip to content

Add the ability to detect what host the codespace is currently running in. #231531

@jongio

Description

@jongio

When developing an application that runs in the terminal like a cli or a script, we need to know if the codespace is running in the browser in vs code connected to a codespace or in a dev container.

One possible solution would be to set an environment variable, something like CODESPACES_HOST and set that to either browser, vs code, code spaces or vs code dev container.

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