-
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
Inserting Activate.ps1 command into extension contributed terminals #24061
Comments
@paulober You can disable activation, by setting these off: There is no way to tell which extension created which terminal to filter things out. There are other extensions that expect that activations occur when a terminal is created, then there are extensions that expect that activations don't happen. So, the way we handle this is via the settings above, if you have them on, then any terminal created by extension would be activated. |
Ok, thanks for the response, so my only option is to edit the users global setting to disable this "Activate in all environments" setting before automatically opening the terminal? |
You should be able to disable this at the workspace level, if there is a specific project that you need to do this with. But, if the common pattern in your workflow involves using custom terminals, then you can turn this off globally and activate environments via command line. I think there is a good feature here to allow toggling the activation. |
Ok thanks. Actually i'm the dev of this custom terminal. So i probably and the generated projects rely on the Python extension so I probably will add this setting like you suggested to every generated .vscode/settings.json so per workspace folder. Thanks for the help. |
Type: Bug
Behaviour
Currently I have selected a .venv in my project folder created by the Python extension.
The problem now is I have a custom PTY extension terminal profile contributed by a different extension. But if it opens the Python extension automatically inserts:
& C:/mypath/Activate.ps1\r
which is not good for my custom terminal profiles as they aren't even running in a local env.Steps to reproduce:
Diagnostic data
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Behaviour
XXX
Steps to reproduce:
Diagnostic data
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Extension version: 2024.14.0
VS Code version: Code 1.93.0 (4849ca9bdf9666755eb463db297b69e5385090e3, 2024-09-04T13:02:38.431Z)
OS version: Windows_NT x64 10.0.22631
Modes:
python.languageServer
setting: PylanceUser Settings
Installed Extensions
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
The text was updated successfully, but these errors were encountered: