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

Fix to respect environment reporting setting in fish #242234

Merged
merged 2 commits into from
Feb 28, 2025

Conversation

anthonykim1
Copy link
Contributor

Further resolves: #241991

This will not send env info if user setting is off on fish, and respect the env reporting setting on fish just like we do for pwsh,bash,zsh.

Tyriar
Tyriar previously approved these changes Feb 27, 2025
set myVar (echo $line | awk -F= '{print $1}')
set myVal (echo $line | awk -F= '{print $2}')
__vsc_esc EnvSingleEntry $myVar (__vsc_escape_value "$myVal")
if test $__vscode_shell_env_reporting -eq 1
Copy link
Member

Choose a reason for hiding this comment

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

Can we put this on the outside so the event listener isn't set up if this isn't set?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I hope that makes it a bit faster 6bf76d9

@anthonykim1 anthonykim1 marked this pull request as ready for review February 27, 2025 23:02
@anthonykim1 anthonykim1 requested a review from Tyriar February 27, 2025 23:02
@vs-code-engineering vs-code-engineering bot added this to the February 2025 milestone Feb 27, 2025
@anthonykim1 anthonykim1 merged commit 56d1dd4 into main Feb 28, 2025
8 checks passed
@anthonykim1 anthonykim1 deleted the anthonykim1/fixFishEnvReporting branch February 28, 2025 00:47
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.

window.onDidChangeTerminalShellIntegration is not fired for env var changes in bash or zshor pwsh
2 participants