-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Consider adding PYTHONSTARTUP with shell integration to environment variable collection #23930
Comments
…ollection (#24111) Resolves: #23930 - setting to opt out of PYTHONSTARTUP injection. --------- Co-authored-by: Courtney Webster <[email protected]>
@anthonykim1 are you tracking somewhere the next step for this to change setting defaults? |
@Tyriar I'm not since the default is set to true now in: https://github.com/microsoft/vscode-python/pull/24111/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519R635 Should we rather start at false and then later change default to true? @Tyriar |
@anthonykim1 it was previously scoped to only users that use the |
From discussion in the original issue: #23930 (comment) Making default to be false for September stable, perhaps we could turn it on to true for insiders AFTER once we ship out stable. /cc @Tyriar
Item to eventually change the default is now here: #24141 |
Verification steps: (Mac and Linux ONLY)
|
Thanks for the clear verification steps, but I'm not seeing any of the shell integration features for Step 4. |
Sorry for confusion here @rzhao271 Actually you won't see shell integration features if you are on Windows pwsh atm. |
Verified in WSL with Ubuntu 22.04. |
Currently opening the REPL will open the default shell with a custom environment:
vscode-python/src/client/common/terminal/service.ts
Lines 82 to 86 in e90b95d
And then run
& .../python3
to launch it as a sub-shell:Why not set the environment variable globally such that any python sub-shell will have shell integration? Adding this to my pwsh profile works:
The text was updated successfully, but these errors were encountered: