Skip to content

Commit 4b0b1a4

Browse files
committed
Disable prompt reporting on git bash
1 parent 3164310 commit 4b0b1a4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/vs/workbench/contrib/terminal/browser/media/shellIntegration-bash.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,11 @@ unset VSCODE_NONCE
196196
builtin printf "\e]633;P;ContinuationPrompt=$(echo "$PS2" | sed 's/\x1b/\\\\x1b/g')\a"
197197

198198
__vsc_report_prompt() {
199+
# HACK: Git bash is too slow at reporting the prompt, so skip for now
200+
if [ "$__vsc_is_windows" = "1" ]; then
201+
return
202+
fi
203+
199204
# Expand the original PS1 similarly to how bash would normally
200205
# See https://stackoverflow.com/a/37137981 for technique
201206
if ((BASH_VERSINFO[0] >= 5 || (BASH_VERSINFO[0] == 4 && BASH_VERSINFO[1] >= 4))); then

0 commit comments

Comments
 (0)