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

Allow extensions to know which extension created terminal #98888

Closed
andycraig opened this issue May 31, 2020 · 2 comments
Closed

Allow extensions to know which extension created terminal #98888

andycraig opened this issue May 31, 2020 · 2 comments
Assignees
Labels
*out-of-scope Posted issue is not in scope of VS Code

Comments

@andycraig
Copy link

It would be good if extensions could know whether a new terminal was created by another extension.

The motivating case for this is when using both Python and R. The Python extension sends Python environment activation code to newly created terminals, but if the terminal was created by an R extension this results in a confusing error for the user. I raised this as an issue at the Python extension repo microsoft/vscode-python#11963 but was told that VS Code doesn't provide any way for an extension to know if a terminal was created by another extension microsoft/vscode-python#11963 (comment)

Here is the Python environment activation code that appears in the R terminal, and the R error message that results:

> source /home/[LOCATION]/python-R-test/env/bin/activate
Error: object 'home' not found

Thank you.

@Tyriar
Copy link
Member

Tyriar commented Jun 3, 2020

Out of scope as there's a solution to this that the Python extension has yet to support microsoft/vscode-python#11963 (comment).

@Tyriar Tyriar added the *out-of-scope Posted issue is not in scope of VS Code label Jun 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
*out-of-scope Posted issue is not in scope of VS Code
Projects
None yet
Development

No branches or pull requests

3 participants
@Tyriar @andycraig and others