Skip to content

VSCode Variable Interpolation #865

@zhaofengli

Description

@zhaofengli

VSCode performs its own variable interpolation on variables set in EnvironmentVariableCollection. Given the following .envrc:

export WOW='${workspaceFolder}'

In regular terminal:

❯ echo $WOW
${workspaceFolder}

In VSCode integrated terminal:

❯ echo $WOW
/Users/zhaofeng/Sandbox

What's worse, exporting any variable containing ${env} locks up the VSCode terminal.

Metadata

Metadata

Assignees

No one assigned

    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