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

Feature to disable conda activation when new terminals are opened. #13228

Closed
ghost opened this issue Aug 1, 2020 · 2 comments
Closed

Feature to disable conda activation when new terminals are opened. #13228

ghost opened this issue Aug 1, 2020 · 2 comments
Labels
feature-request Request for new features or functionality

Comments

@ghost
Copy link

ghost commented Aug 1, 2020

Possibly related to this and this.

I just started using VS Code to integrate my R and Python scripts in a single workspace. This "feature" of the Python extension is really annoying...

Okay, based on this, I understand why you may have built something that runs
[PATH]/anaconda3/Scripts/activate
and
conda activate base
when opening terminals that are intended to run Python code... But after installing the Python extension, every single new terminal tries to run this code, even those that are not intended for use with Python.

I do not need/want these commands to run automatically if I simply open an R terminal, a bash terminal, or some other terminal... Yet, in VS workspaces where the VS Code extension has been activated, these commands are sent every single time a new terminal is open. Screenshots are below from opening a radian terminal for running R code and when I simply open a bash terminal.

r example
bash example

Why are these two lines of code sent for every new terminal after Python extension has been activated?
How can we disable this?

Thank you!

@ghost ghost added triage-needed Needs assignment to the proper sub-team feature-request Request for new features or functionality labels Aug 1, 2020
@andycraig
Copy link

andycraig commented Aug 1, 2020

Sounds like this is waiting on an API that allows environment variables to be set without using the command line: #11963 (comment)

@ghost
Copy link
Author

ghost commented Aug 2, 2020

Thanks @andycraig . The setting "python.terminal.activateEnvironment": false works well enough for me. User Tyriar in that other thread indicated that "the activation should not be done by sending commands", so I wonder if I'll run into unexpected behavior later by changing my settings...

Until then, I'll close this issue though as I'm happy with the solution thus far.

Thanks again for linking the other thread, @andycraig !

@ghost ghost closed this as completed Aug 2, 2020
@ghost ghost removed the triage-needed Needs assignment to the proper sub-team label Aug 2, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 11, 2021
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

1 participant