Skip to content

Inject Python activate hooks into vscode shell integration scripts #259637

@anthonykim1

Description

@anthonykim1

We have shell startup setting from Python environment extension:

Image

This would allow us to avoid issues like: microsoft/vscode-python#25322
and activate people's terminal without having to display ...activate command in terminal.

In Python environment extension, we inject to user's shell init script like:

https://github.com/microsoft/vscode-python-environments/blob/ed4c55131fae2e86b8f588117aa7088007f45dc2/src/features/terminal/shells/bash/bashStartup.ts#L44

Part of my .bashrc:

Image

This hook(?) could be moved to core (shell integration script)

/cc @Tyriar

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions