-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Fix: Add env object syntax to launch.json schema for cppdbg and cppvsdbg
#14691
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Prashant Kumar Rai (8prashant)
wants to merge
28
commits into
microsoft:main
Choose a base branch
from
8prashant:fix/12537-env-property-schema
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
aebf397
Fix #12537: add env object schema to cppdbg and cppvsdbg launch configs
02prashantrai deb60ac
Fix #12537: add env object schema to cppdbg and cppvsdbg launch configs
8prashant 13f598c
Add support for env object in cppdbg and runWithoutDebugging configur…
02prashantrai 66f6d95
Add support for env object in cppdbg and runWithoutDebugging configur…
8prashant 793ac13
Merge branch 'main' into fix/12537-env-property-schema
8prashant 146e959
Merge branch 'main' into fix/12537-env-property-schema
8prashant 7130385
Update env description to include message and comment structure; enha…
8prashant 84a0467
Update env description to include message and comment structure; enha…
8prashant e2b17cf
Merge branch 'fix/12537-env-property-schema' of https://github.com/8p…
8prashant 737ecd1
Merge branch 'fix/12537-env-property-schema' of https://github.com/8p…
8prashant d961d42
Merge branch 'fix/12537-env-property-schema' of https://github.com/8p…
8prashant 034ed40
Merge branch 'main' into fix/12537-env-property-schema
8prashant 30f2f9d
Refactor environment variable handling in DebugConfigurationProvider …
8prashant c933aee
Merge branch 'fix/12537-env-property-schema' of https://github.com/8p…
8prashant af30f6c
Merge branch 'main' into fix/12537-env-property-schema
8prashant 875e702
Update environment variable handling to allow null values in DebugCon…
8prashant 51fe13f
Fix environment variable deletion for case insensitivity
8prashant ce9cbd9
Enhance environment variable handling to support null values in schem…
8prashant dc91405
Update environment variable schema to allow null values for variable …
8prashant d15c9a8
Add terminal close handling to manage terminal lifecycle in RunWithou…
8prashant 636a76a
Refactor environment variable handling to remove null type support in…
8prashant bc14d84
Manage terminal lifecycle by tracking active terminals in RunWithoutD…
8prashant 917c870
Fix terminal management by ensuring closed terminals are removed from…
8prashant 5e65c07
Refactor environment handling in DebugConfigurationProvider to use En…
8prashant d22eea6
Preserve case-distinct environment variable names for remote cppdbg t…
8prashant b0c173e
Enhance external terminal launch on macOS by incorporating environmen…
8prashant 7880c4f
Fix terminal management by ensuring correct deletion of managed termi…
8prashant f4ca8e8
Add test for RunWithoutDebuggingAdapter to validate macOS external te…
8prashant File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
Extension/test/scenarios/RunWithoutDebugging/assets/envTest.cpp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| #include <cstdlib> | ||
| #include <fstream> | ||
|
|
||
| int main(int argc, char *argv[]) { | ||
| if (argc < 3) { | ||
| return 1; | ||
| } | ||
|
|
||
| const char *value = std::getenv(argv[1]); | ||
|
|
||
| std::ofstream resultFile(argv[2]); | ||
| if (!resultFile) { | ||
| return 2; | ||
| } | ||
|
|
||
| if (value) { | ||
| resultFile << value; | ||
| } | ||
|
|
||
| return 0; | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.