microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
161.9k stars 28.45k forks source link

Add context menu item to relaunch terminals with extra environment info #214242

Open ulugbekna opened 2 months ago

ulugbekna commented 2 months ago

Currently, when launching VS Code I often see terminals (including ones that just run tasks) have warnings that some terminal env contributions couldn't happen, so I need to relaunch the terminal.

Since the orange warning is quite eye-catching and distracting, I relaunch those terminals, but it's quite tedious because it can be done either using a link within hover, which is easy to lose on inaccurate mouse move and also non-keyboard friendly, or by killing and relaunching the terminal.

To alleviate this problem, could we add right-click context menu items to

This has become quite a pain point for me when I very often get these warnings and have to kill all terminals one by one and relaunch them (this's necessary for terminals with tasks running)

https://github.com/microsoft/vscode/assets/16353531/00e5e155-d711-494a-a683-2f1a833f1280

ulugbekna commented 2 months ago

I also wonder if there could be false positives because in the hover I see both git contribution info but also that it couldn't contribute:

Image

Tyriar commented 2 months ago

@ulugbekna in the latter screenshot the git extension would have changed its environment

ulugbekna commented 3 weeks ago

in the latter screenshot the git extension would have changed its environment

Should the wording then be "Would like to update its environment"? I think it's confusing and bug-like that git has already contributed to enable git auth provider but wants to relaunch to contribute again to enable git auth provider.

Image

Image