microsoft / microsoft/vscode-cpptools

Extend environment variable

Open
#3,929 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

debugger Feature Request
Dominant language
TypeScript
Stars
6.2k
Forks
1.7k
Avg merge
14h 46m
Merged PRs (30d)
61

Description

Type: Debugger

OS and Version: Windows 10 1809
VS Code Version: 1.36.1
C/C++ Extension Version: 0.24.0

Would be great to be able to extend environment variable like this:

        "environment": [
            {"name": "test_env_var", "value": "A;${env:test_env_var}"},
            {"name": "test_env_var", "value": "B;${env:test_env_var}"},
            {"name": "test_env_var", "value": "C;${env:test_env_var}"},
        ],

so final "test_env_var" = "C;B;A;", now it results in "C;"

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named. Start by locating the C/C++ extension's debugger environment handling and how ${env:...} substitutions are evaluated; compare the current behavior with the Windows example. Done means repeated definitions can reference the previous value and produce the requested C;B;A; result, with coverage for this case.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
devtools
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.