File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
src/vs/workbench/contrib/terminal/browser/media Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,9 @@ __vsc_stable="$VSCODE_STABLE"
175
175
unset VSCODE_STABLE
176
176
177
177
# Report continuation prompt
178
- builtin printf " \e]633;P;ContinuationPrompt=$( echo " $PS2 " | sed ' s/\x1b/\\\\x1b/g' ) \a"
178
+ if [ " $__vsc_stable " = " 0" ]; then
179
+ builtin printf " \e]633;P;ContinuationPrompt=$( echo " $PS2 " | sed ' s/\x1b/\\\\x1b/g' ) \a"
180
+ fi
179
181
180
182
__vsc_report_prompt () {
181
183
# Expand the original PS1 similarly to how bash would normally
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ function Global:Prompt() {
98
98
99
99
# Prompt
100
100
# OSC 633 ; <Property>=<Value> ST
101
- if ($isStable -eq " 1 " ) {
101
+ if ($isStable -eq " 0 " ) {
102
102
$Result += " $ ( [char ]0x1b ) ]633;P;Prompt=$ ( __VSCode- Escape- Value $OriginalPrompt ) `a "
103
103
}
104
104
@@ -147,9 +147,11 @@ else {
147
147
}
148
148
149
149
# Set ContinuationPrompt property
150
- $ContinuationPrompt = (Get-PSReadLineOption ).ContinuationPrompt
151
- if ($ContinuationPrompt ) {
152
- [Console ]::Write(" $ ( [char ]0x1b ) ]633;P;ContinuationPrompt=$ ( __VSCode- Escape- Value $ContinuationPrompt ) `a " )
150
+ if ($isStable -eq " 0" ) {
151
+ $ContinuationPrompt = (Get-PSReadLineOption ).ContinuationPrompt
152
+ if ($ContinuationPrompt ) {
153
+ [Console ]::Write(" $ ( [char ]0x1b ) ]633;P;ContinuationPrompt=$ ( __VSCode- Escape- Value $ContinuationPrompt ) `a " )
154
+ }
153
155
}
154
156
155
157
# Set always on key handlers which map to default VS Code keybindings
You can’t perform that action at this time.
0 commit comments