We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
[[
1 parent 3bc5735 commit 281b90dCopy full SHA for 281b90d
src/vs/workbench/contrib/terminal/browser/media/shellIntegration-bash.sh
@@ -125,7 +125,13 @@ if [[ -n "${bash_preexec_imported:-}" ]]; then
125
precmd_functions+=(__vsc_prompt_cmd)
126
preexec_functions+=(__vsc_preexec_only)
127
else
128
- __vsc_dbg_trap="$(trap -p DEBUG | cut -d' ' -f3 | tr -d \')"
+ __vsc_dbg_trap="$(trap -p DEBUG)"
129
+ if [[ "$__vsc_db_trap" =~ .*\[\[.* ]]; then
130
+ __vsc_dbg_trap=${__vsc_dbg_trap#'trap -- '*}
131
+ __vsc_dbg_trap=${__vsc_dbg_trap%'DEBUG'}
132
+ else
133
+ __vsc_dbg_trap="$(trap -p DEBUG | cut -d' ' -f3 | tr -d \')"
134
+ fi
135
if [[ -z "$__vsc_dbg_trap" ]]; then
136
__vsc_preexec_only() {
137
if [ "$__vsc_in_command_execution" = "0" ]; then
0 commit comments