Skip to content

Commit

Permalink
Comment out env for bash until fix (microsoft#238463)
Browse files Browse the repository at this point in the history
comment out env for bash until fix
  • Loading branch information
anthonykim1 authored Jan 22, 2025
1 parent c953035 commit 7fb4569
Showing 1 changed file with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,16 +214,16 @@ __vsc_update_cwd() {
builtin printf '\e]633;P;Cwd=%s\a' "$(__vsc_escape_value "$__vsc_cwd")"
}

__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
}
# __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
# }

__vsc_command_output_start() {
if [[ -z "${__vsc_first_prompt-}" ]]; then
Expand Down Expand Up @@ -252,9 +252,9 @@ __vsc_command_complete() {
fi
__vsc_update_cwd

if [ "$__vsc_stable" = "0" ]; then
__vsc_update_env
fi
# if [ "$__vsc_stable" = "0" ]; then
# __vsc_update_env
# fi
}
__vsc_update_prompt() {
# in command execution
Expand Down Expand Up @@ -285,9 +285,9 @@ __vsc_precmd() {
__vsc_first_prompt=1
__vsc_update_prompt

if [ "$__vsc_stable" = "0" ]; then
__vsc_update_env
fi
# if [ "$__vsc_stable" = "0" ]; then
# __vsc_update_env
# fi
}

__vsc_preexec() {
Expand Down

0 comments on commit 7fb4569

Please sign in to comment.