-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
Draft) Expose shell's environment to extension #228791
Conversation
export class ShellEnvironmentDetectionCapability extends Disposable implements IShellEnvDetectionCapability { | ||
readonly type = TerminalCapability.ShellEnvironmentDetection; | ||
|
||
// TODO: Type of envs should be { [key: string]: string | undefined } | undefined ?? |
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.
Does not need to be | undefined.
Capability will never be created where we dont receive it.
Co-authored-by: Daniel Imms <[email protected]>
Co-authored-by: Daniel Imms <[email protected]>
TODO: Create setting so that we dont always pass in environment variables to extension host by default. |
…ils for bash Co-authored-by: Daniel Imms <[email protected]>
Let's close this since it's superseded by #237415 and other follow ups |
Resolves: #227467
Bash/zsh/pwsh, etc -> capability -> env change event -> main thread -> env change event -> extension host -> SI change event (env, cwd, shell integration) -> ext