-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
Add proposed API to specific workspace-specific environment variables via EnvironmentVariableCollection #179323
Merged
Merged
Changes from 61 commits
Commits
Show all changes
68 commits
Select commit
Hold shift + click to select a range
76a7d03
Add proposed API
72d1a8e
Add scope parameter
c92e48e
If workspace scope does not match, do not apply collection
6d93a72
Pass workspace to addEnvMixinPathPrefix
69b6e83
Pass it in other places
aa8c153
Fix compile errors
b02d273
Do basic key change
422a0f3
Add it to IMutator
1ada816
yo
7a91afc
Rename map to variableMap to distinguish it from collection map
251e624
Fix
6500583
Fix env var collection tests"
1f3fdad
Fix env var service tests
b95214a
Fix env var shared tests
8c3884b
Fix terminal integration test
ecfcc30
Add scope for get and delete
22631c1
Do not return variable property
ba75724
Do not use key
83f9805
Fix merge collection unit tests
5a24e05
Fix env shared unit tests
c6e7611
Try to fix env var tests
1453621
Fix more tests
53d6c18
Oops
f60a941
More fixes
653cafb
Few more fixes
03de27d
Pass workspace folder via apply method instead
4170fe5
More fixes
bd4e21a
Propogate more
0e68130
Undo
2b37e8e
Show env contributions
2859ba1
Try to fix diff
1b0ab36
Fix keys in diff
87f4291
Fix variable map
b68f2e5
Undo unncessary changes
6ef9770
Use variable map instead
0cdf68c
Fix filtering
9746949
Undo
3b0ac4b
Revert unncessary changes
a3d0107
Remove console
028ebcb
switch key
fcde0a7
Add clear propsoed api
1fc1fb1
Serialize and deserialize description
baca51c
Descrp 2
ecb6c8a
Fall back to last active workspace if cwd is not speicified
b9ec13d
Revert "Serialize and deserialize description"
1736cb1
Fix compile errors
fe8176d
Update tests in env var
37dae98
Use different key in variable collection tests
30fd6e0
Add scope tests for ctor
606c2db
Add scope tests for applyToProcessEnvironment
ae4c38e
Add tests for workspace scoped diffs
305b419
Add scope tests for env var service
ce77032
Fix
d50e185
Attempt to fix tests
ac3d156
Deprecate old env var storage
0dc2f48
Undo using cwd for remote terminal
81f2173
Use common function to get workspace folder
be89fd2
Fix for remote terminals
3c70889
Nit
2b2b5f0
Make scope optional interally
50408e1
Make scope as optional
4176a47
Change variable resolver to use cwd workspace folder
9d68cc5
OOps
69e919c
Delete scope property if `undefined`
d3b1c67
Fix terminal integration tests
39da375
Attempt to fix smoke tests
9e4fa31
Attempt to use correct workspace for remote terminals
54965bb
Revert "Attempt to use correct workspace for remote terminals"
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
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
then you can remove all of the
environmentVariableCollections: undefined
from
vscode/src/vs/platform/terminal/test/node/terminalEnvironment.test.ts
Lines 13 to 16 in 0dc2f48
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should not miss to pass
workspaceFolder
when usingITerminalProcessOptions
, so I don't think making it optional for sake of tests is the best approach.