Allow a terminal creation to ignore VSCode's process environment#64733
Merged
Tyriar merged 3 commits intomicrosoft:masterfrom Jan 11, 2019
Merged
Allow a terminal creation to ignore VSCode's process environment#64733Tyriar merged 3 commits intomicrosoft:masterfrom
Tyriar merged 3 commits intomicrosoft:masterfrom
Conversation
GabeDeBacker
commented
Dec 10, 2018
src/vs/workbench/parts/terminal/electron-browser/terminalProcessManager.ts
Outdated
Show resolved
Hide resolved
Tyriar
requested changes
Dec 10, 2018
src/vs/workbench/parts/terminal/electron-browser/terminalProcessManager.ts
Outdated
Show resolved
Hide resolved
src/vs/workbench/parts/terminal/electron-browser/terminalProcessManager.ts
Outdated
Show resolved
Hide resolved
src/vs/workbench/api/electron-browser/mainThreadTerminalService.ts
Outdated
Show resolved
Hide resolved
Tyriar
requested changes
Dec 17, 2018
Member
Tyriar
left a comment
There was a problem hiding this comment.
@GabeDeBacker we just had the API call, the idea is approved and the final incarnation we landed on is pretty simply and much closer to the initial version:
export interface TerminalOptions {
/**
* Whether the terminal process environment should be exactly as provided in
* `TerminalOptions.env`. When this is false (default), the environment will be based on the
* window's environment and also apply configured platform settings like
* `terminal.integrated.windows.env` on top.
*/
strictEnv: boolean;
}If that works for you we can keep working on the PR and merge it in.
Contributor
Author
|
Sorry, didn't mean to go missing in action here. I'll get on this and get it completed with the approved API design above. |
399e115 to
e1d8493
Compare
Tyriar
approved these changes
Jan 11, 2019
Member
Tyriar
left a comment
There was a problem hiding this comment.
LGTM, works great. Merging after CI passed 😃
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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
#64731 - > Allow a terminal to be created with a specific environment by not inheriting VSCode's environment.