Skip to content

Commit 9c873bf

Browse files
committed
Properly escape replays
1 parent 0a24c24 commit 9c873bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vs/platform/terminal/test/common/capabilities/commandDetection/promptInputModel.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ suite('PromptInputModel', () => {
185185
suite('Windows 11 (10.0.22621.3447), pwsh 7.4.2, starship prompt 1.10.2', () => {
186186
test('input with ignored ghost text', async () => {
187187
await replayEvents([
188-
'[?25l[2J[m[H]0;C:\Program Files\WindowsApps\Microsoft.PowerShell_7.4.2.0_x64__8wekyb3d8bbwe\pwsh.exe[?25h',
188+
'[?25l[2J[m[H]0;C:\\Program Files\\WindowsApps\\Microsoft.PowerShell_7.4.2.0_x64__8wekyb3d8bbwe\\pwsh.exe[?25h',
189189
'[?25l\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n[?25h',
190190
']633;P;IsWindows=True',
191191
']633;P;ContinuationPrompt=\x1b[38\x3b5\x3b8m∙\x1b[0m ',
@@ -207,7 +207,7 @@ suite('PromptInputModel', () => {
207207
});
208208
test('input with accepted and run ghost text', async () => {
209209
await replayEvents([
210-
'[?25l[2J[m[H]0;C:\Program Files\WindowsApps\Microsoft.PowerShell_7.4.2.0_x64__8wekyb3d8bbwe\pwsh.exe[?25h',
210+
'[?25l[2J[m[H]0;C:\\Program Files\\WindowsApps\\Microsoft.PowerShell_7.4.2.0_x64__8wekyb3d8bbwe\\pwsh.exe[?25h',
211211
'[?25l\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n[?25h',
212212
']633;P;IsWindows=True',
213213
']633;P;ContinuationPrompt=\x1b[38\x3b5\x3b8m∙\x1b[0m ',

0 commit comments

Comments
 (0)