Skip to content
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

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

anthonykim1
Copy link
Contributor

@anthonykim1 anthonykim1 commented Sep 17, 2024

Resolves: #227467

@anthonykim1 anthonykim1 self-assigned this Sep 17, 2024
@anthonykim1 anthonykim1 changed the title Expose shell's environment to extension Draft) Expose shell's environment to extension Sep 17, 2024
export class ShellEnvironmentDetectionCapability extends Disposable implements IShellEnvDetectionCapability {
readonly type = TerminalCapability.ShellEnvironmentDetection;

// TODO: Type of envs should be { [key: string]: string | undefined } | undefined ??
Copy link
Contributor Author

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.

src/vs/workbench/api/common/extHost.protocol.ts Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

API to expose the shell's actual environment to extensions
1 participant