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

Expose shell's environment - bash #237602

Merged
merged 71 commits into from
Jan 11, 2025
Merged

Conversation

anthonykim1
Copy link
Contributor

Trying to break #228791 down smaller so that it is easier to review.

Part of #227467

anthonykim1 and others added 30 commits September 16, 2024 22:20
Co-authored-by: Daniel Imms <Tyriar@users.noreply.github.com>
Co-authored-by: Daniel Imms <Tyriar@users.noreply.github.com>
…ils for bash

Co-authored-by: Daniel Imms <Tyriar@users.noreply.github.com>
Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>
Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>
…ion.ps1

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>
…ion-rc.zsh

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>
…ion-rc.zsh

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>
Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>
@anthonykim1 anthonykim1 requested a review from Tyriar January 10, 2025 05:24
@Tyriar
Copy link
Member

Tyriar commented Jan 10, 2025

@anthonykim1 updating branch should hopefully simplify the commit list since the pwsh PR was merged.

if (!isTrusted) {
return;
}
this._env.clear();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't need to clear anymore

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Contributor Author

@anthonykim1 anthonykim1 Jan 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed them here:
but would we ever have to worry about a case where we start startEnvironmentSingleVar but User requests to access terminal.shellIntegration.env before we go into setEnvironmentSingleVar and endEnvironmentSingleVar?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If that happens I would expect the old state, rather than a partially complete new state

anthonykim1 and others added 3 commits January 10, 2025 15:02
…Capability.ts

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>
…Capability.ts

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>
@anthonykim1 anthonykim1 marked this pull request as ready for review January 11, 2025 00:16
@anthonykim1 anthonykim1 enabled auto-merge (squash) January 11, 2025 00:16
Copy link

This PR originates from a fork. If the changes appear safe, you can trigger the pipeline by commenting /AzurePipelines run.

@vs-code-engineering vs-code-engineering bot added this to the January 2025 milestone Jan 11, 2025
@anthonykim1 anthonykim1 merged commit e6805d7 into microsoft:main Jan 11, 2025
7 checks passed
@aiday-mar
Copy link
Contributor

Hi, the recents builds are failing in the integration tests. I traced the failure to this PR. I will revert this PR so we can release Insiders today, but feel free to rework the PR and merge it again once the issue is resolved.

aiday-mar added a commit that referenced this pull request Jan 13, 2025
aiday-mar added a commit that referenced this pull request Jan 13, 2025
Revert "Expose shell's environment - bash  (#237602)"

This reverts commit e6805d7.
@Tyriar
Copy link
Member

Tyriar commented Jan 13, 2025

@anthonykim1 see #237784 for the build that failed.

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.

6 participants