-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
Terminal profile settings not reflected in terminals created using VSCode API #192943
Comments
I think this is by design because you're launching a shell, not a profile. Unless you don't specify a |
I believe we're always launching a And if it is by design, I'm curious as to why and what are the benefits (since it seems counter-intuitive to me IMHO)? |
@kyochikuto it's by design from what the extension API does since it's setting a |
I would expect the behavior of
@Tyriar How do we launch such a terminal using vscode API? |
@karrtikr do you explicitly set the shellPath currently? |
Nope, just the name. |
This is right, profiles launching from the extension host was just never considered. Thinking about it now the way I would expect it to work is for all props of the default profile to be picked up if @karrtikr do you have bandwidth to look into implementing this? It's probably just a matter of calling into |
I actually need this to prevent VS Code from cluttering my shell history, otherwise my history is filled up with entries such as Setting |
@kyochikuto thanks for the info, I created microsoft/vscode-python#21998 to hopefully solve the issue you're having regardless of this ask. You can also check if |
@kyochikuto This should be fixed with microsoft/vscode-python#22004, I've opened microsoft/vscode-python#22005 on your behalf to verify this. |
This is indeed fixed and I can properly set env vars for my fish shell now, thank you for your time and attention! |
Does this issue occur when all extensions are disabled?: Yes/No
Version: 1.83.0-insider
Commit: 03671d332bf6a34782d5adc64086bc8e083a1590
Date: 2023-09-12T15:02:37.804Z
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36
Steps to Reproduce:
Select this as default terminal profile
Create a terminal and print variables, notice
fish_history
is present:Create a terminal using
vscode.window.createTerminal()
API, notice many variables including this are not present:For Python extension, this leads to "Python" terminals being different from the selected terminal: microsoft/vscode-python#21960. Created on behalf of @kyochikuto.
The text was updated successfully, but these errors were encountered: