microsoft / vscode

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

Closing (both using X and the bin icon) all integrated terminals does not refresh Path variables #193757

Closed sak2 closed 11 months ago

sak2 commented 11 months ago

Type: Bug

In Windows you don't get updated Path variables etc without restarting Powershell or CMD. In VS Code there is no way to restart the Terminal itself without fully exiting out of VS Code.

VS Code version: Code 1.82.1 (6509174151d557a81c9d0b5f8a5a1e9274db5585, 2023-09-08T08:45:05.575Z) OS version: Windows_NT x64 10.0.22621 Modes:

System Info |Item|Value| |---|---| |CPUs|11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz (16 x 2304)| |GPU Status|2d_canvas: enabled
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
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|31.84GB (14.54GB free)| |Process Argv|--crash-reporter-id a21f5ef7-1856-4de7-8bf0-e3a43818596c| |Screen Reader|no| |VM|0%|
Extensions (33) Extension|Author (truncated)|Version ---|---|--- better-comments|aar|3.0.2 aws-toolkit-vscode|ama|1.90.0 vscode-tailwindcss|bra|0.10.0 codeium|Cod|1.2.90 vscode-eslint|dba|2.4.2 prettier-vscode|esb|10.1.0 vscode-expo-tools|exp|1.0.7 git-graph|mhu|1.30.0 document|min|2.2.1 vscode-docker|ms-|1.26.1 vscode-edge-devtools|ms-|2.1.3 isort|ms-|2023.10.1 python|ms-|2023.16.0 vscode-pylance|ms-|2023.9.20 jupyter|ms-|2023.8.1002501831 jupyter-keymap|ms-|1.1.2 jupyter-renderers|ms-|1.0.17 vscode-jupyter-cell-tags|ms-|0.1.8 vscode-jupyter-slideshow|ms-|0.1.5 remote-containers|ms-|0.309.0 remote-ssh|ms-|0.106.4 remote-ssh-edit|ms-|0.86.0 remote-wsl|ms-|0.81.4 cmake-tools|ms-|1.15.31 cpptools|ms-|1.17.5 cpptools-extension-pack|ms-|1.3.0 powershell|ms-|2023.6.0 remote-explorer|ms-|0.4.1 vscode-react-native|msj|1.12.0 cmake|twx|0.0.17 volar|Vue|1.8.13 vscode-typescript-vue-plugin|Vue|1.8.13 vitest-explorer|Zix|0.2.42 (1 theme extensions excluded)
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 vserr242cf:30382550 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 vscoreces:30445986 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593cf:30376535 pythonvs932:30410667 py29gd2263:30792226 vscaac:30438847 vsclangdc:30486549 c4g48928:30535728 dsvsc012:30540252 pynewext54:30695312 azure-dev_surveyone:30548225 282f8724:30602487 89544117:30613380 a9j8j154:30646983 showlangstatbar:30737416 03d35959:30757346 pythonfmttext:30731395 fixshowwlkth:30771522 showindicator:30805244 pythongtdpath:30769146 i26e3531:30792625 pythonnosmt12:30797651 pythonidxpt:30805730 pythonnoceb:30805159 copilotsettingc:30839828 dsvsc013:30795093 dsvsc014:30804076 diffeditorv2:30821572 dsvsc015:30829745 ```
VSCodeTriageBot commented 11 months ago

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.82.2. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

meganrogge commented 11 months ago

We have a way to restart the terminal / relaunch it when extensions contribute environment variables, but yeah, we don't currently have support for this if the environment is modified by the user AFAIK.

Tyriar commented 11 months ago

/duplicate https://github.com/microsoft/vscode/issues/47816