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

Adding PYTHONSTARTUP with shell integration to environment variable collection #24111

Merged
merged 18 commits into from
Sep 19, 2024

Conversation

anthonykim1
Copy link

@anthonykim1 anthonykim1 commented Sep 15, 2024

Resolves: #23930

  • setting to opt out of PYTHONSTARTUP injection.

@anthonykim1 anthonykim1 added feature-request Request for new features or functionality area-terminal area-repl labels Sep 15, 2024
@anthonykim1 anthonykim1 self-assigned this Sep 15, 2024
@anthonykim1 anthonykim1 added skip package*.json package.json and package-lock.json don't both need updating labels Sep 15, 2024
package.json Outdated
@@ -631,6 +631,12 @@
"scope": "resource",
"type": "array"
},
"python.terminal.enable Shell Integration in Python Terminal REPL": {
Copy link
Author

Choose a reason for hiding this comment

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

Can I get feedback on the setting name and description? @cwebster-99
This is for allowing user to opt out of using shell integration for REPL when they launch the terminal REPL via typing out "python" in terminal.

Copy link
Member

Choose a reason for hiding this comment

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

I think this looks good. My one suggestion for the description is to be a bit more descriptive on what shell integration might enable or disable from the user perspective so users may better understand what might change in their experience.

Copy link
Author

Choose a reason for hiding this comment

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

Thanks for the feedback! Made some changes here: 8e8dd18
So it would look like:
Screenshot 2024-09-16 at 10 58 35 AM

Copy link
Author

Choose a reason for hiding this comment

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

debating between

Python Startup For Shell Integration 

vs

Python Start up For Shell Integration 

vs

PYTHONSTARTUP For Shell Integration   (PYTHONSTARTUP is actual Python official name of the file we are injecting to enable the feature)

vs

Python Start Up Script

for the title

Copy link
Member

Choose a reason for hiding this comment

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

I think I like the one that is there currently (option 1)!

package.nls.json Outdated Show resolved Hide resolved
Co-authored-by: Courtney Webster <60238438+cwebster-99@users.noreply.github.com>
package.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
package.nls.json Outdated Show resolved Hide resolved
@anthonykim1 anthonykim1 marked this pull request as ready for review September 17, 2024 22:40
@anthonykim1 anthonykim1 marked this pull request as draft September 17, 2024 22:40
@anthonykim1 anthonykim1 marked this pull request as ready for review September 17, 2024 22:45
@vs-code-engineering vs-code-engineering bot added this to the September 2024 milestone Sep 17, 2024
@anthonykim1 anthonykim1 marked this pull request as draft September 18, 2024 18:03
@anthonykim1 anthonykim1 marked this pull request as draft September 18, 2024 18:03
@anthonykim1 anthonykim1 marked this pull request as draft September 18, 2024 18:03
@anthonykim1 anthonykim1 marked this pull request as ready for review September 18, 2024 19:24
@anthonykim1 anthonykim1 merged commit 3fcb3fa into microsoft:main Sep 19, 2024
40 checks passed
anthonykim1 added a commit that referenced this pull request Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-repl area-terminal feature-request Request for new features or functionality skip package*.json package.json and package-lock.json don't both need updating
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider adding PYTHONSTARTUP with shell integration to environment variable collection
3 participants