You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i open one terminal with git bash in windows the windows hang for 20/30 second before open totally. After the openig i see the last output of printenv before the prompt.
The row that cause this are in the file shellIntegration-bash.sh, in the function __vsc_update_env . If i delete delete this function and the two call to __vsc_update_env() i dont have any problem anymore.
__vsc_update_env() {
builtin printf '\e]633;EnvSingleStart;%s;\a' $__vsc_nonce
for var in $(compgen -v); do
if printenv "$var" >/dev/null 2>&1; then
value=$(builtin printf '%s' "${!var}")
builtin printf '\e]633;EnvSingleEntry;%s;%s;%s\a' "$var" "$(__vsc_escape_value "$value")" $__vsc_nonce
fi
done
builtin printf '\e]633;EnvSingleEnd;%s;\a' $__vsc_nonce
}
VS Code version: Code - Insiders 1.97.0-insider (d226a2a, 2025-01-22T05:05:14.565Z)
OS version: Windows_NT x64 10.0.19045
Modes:
System Info
Item
Value
CPUs
Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz (32 x 2095)
Does the problem happen in regular bash terminal too? or just gitbash?
I assume it doesnt happen for pwsh on the same machine, is that correct?
Edit: In the meantime I have commented out the relevant code that is causing this delay. Next insider release should be better for you, but I'd love to hear back once I merge in proper fix for this.
I have not tested the normal bash because I only work with git bash even outside of the Visual Studio Code insider program. It is correct that the problem does not occur for pwsh on the same machine.
Thanks for the quick temporary fix.
I have made better optimization #238488 but it wouldn't be until mid February before I merge in this code and ask you for another confirmation (your git bash shouldnt get this slow). Thanks!
Type: Performance Issue
When i open one terminal with git bash in windows the windows hang for 20/30 second before open totally. After the openig i see the last output of printenv before the prompt.
The row that cause this are in the file shellIntegration-bash.sh, in the function __vsc_update_env . If i delete delete this function and the two call to __vsc_update_env() i dont have any problem anymore.
__vsc_update_env() {
builtin printf '\e]633;EnvSingleStart;%s;\a' $__vsc_nonce
for var in $(compgen -v); do
if printenv "$var" >/dev/null 2>&1; then
value=$(builtin printf '%s' "${!var}")
builtin printf '\e]633;EnvSingleEntry;%s;%s;%s\a' "$var" "$(__vsc_escape_value "$value")" $__vsc_nonce
fi
done
builtin printf '\e]633;EnvSingleEnd;%s;\a' $__vsc_nonce
}
VS Code version: Code - Insiders 1.97.0-insider (d226a2a, 2025-01-22T05:05:14.565Z)
OS version: Windows_NT x64 10.0.19045
Modes:
System Info
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
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Process Info
Workspace Info
Extensions (9)
A/B Experiments
The text was updated successfully, but these errors were encountered: