@@ -98,33 +98,33 @@ export function setup(options?: { skipSuite: boolean }) {
98
98
// Use the simplest profile to get as little process interaction as possible
99
99
await terminal . createEmptyTerminal ( ) ;
100
100
// Erase all content and reset cursor to top
101
- await terminal . runCommandWithValue ( TerminalCommandIdWithValue . WriteDataToTerminal , `${ csi ( '2J' ) } ${ csi ( 'H' ) } ` ) ;
101
+ await terminal . runCommandWithValue ( TerminalCommandIdWithValue . SendSequence , `${ csi ( '2J' ) } ${ csi ( 'H' ) } ` ) ;
102
102
} ) ;
103
103
describe ( 'VS Code sequences' , ( ) => {
104
104
it ( 'should handle the simple case' , async ( ) => {
105
- await terminal . runCommandWithValue ( TerminalCommandIdWithValue . WriteDataToTerminal , `${ vsc ( 'A' ) } Prompt> ${ vsc ( 'B' ) } exitcode 0` ) ;
105
+ await terminal . runCommandWithValue ( TerminalCommandIdWithValue . SendSequence , `${ vsc ( 'A' ) } Prompt> ${ vsc ( 'B' ) } exitcode 0` ) ;
106
106
await terminal . assertCommandDecorations ( { placeholder : 1 , success : 0 , error : 0 } ) ;
107
- await terminal . runCommandWithValue ( TerminalCommandIdWithValue . WriteDataToTerminal , `\\r\\n${ vsc ( 'C' ) } Success\\r\\n${ vsc ( 'D;0' ) } ` ) ;
107
+ await terminal . runCommandWithValue ( TerminalCommandIdWithValue . SendSequence , `\\r\\n${ vsc ( 'C' ) } Success\\r\\n${ vsc ( 'D;0' ) } ` ) ;
108
108
await terminal . assertCommandDecorations ( { placeholder : 0 , success : 1 , error : 0 } ) ;
109
- await terminal . runCommandWithValue ( TerminalCommandIdWithValue . WriteDataToTerminal , `${ vsc ( 'A' ) } Prompt> ${ vsc ( 'B' ) } exitcode 1` ) ;
109
+ await terminal . runCommandWithValue ( TerminalCommandIdWithValue . SendSequence , `${ vsc ( 'A' ) } Prompt> ${ vsc ( 'B' ) } exitcode 1` ) ;
110
110
await terminal . assertCommandDecorations ( { placeholder : 1 , success : 1 , error : 0 } ) ;
111
- await terminal . runCommandWithValue ( TerminalCommandIdWithValue . WriteDataToTerminal , `\\r\\n${ vsc ( 'C' ) } Failure\\r\\n${ vsc ( 'D;1' ) } ` ) ;
111
+ await terminal . runCommandWithValue ( TerminalCommandIdWithValue . SendSequence , `\\r\\n${ vsc ( 'C' ) } Failure\\r\\n${ vsc ( 'D;1' ) } ` ) ;
112
112
await terminal . assertCommandDecorations ( { placeholder : 0 , success : 1 , error : 1 } ) ;
113
- await terminal . runCommandWithValue ( TerminalCommandIdWithValue . WriteDataToTerminal , `${ vsc ( 'A' ) } Prompt> ${ vsc ( 'B' ) } ` ) ;
113
+ await terminal . runCommandWithValue ( TerminalCommandIdWithValue . SendSequence , `${ vsc ( 'A' ) } Prompt> ${ vsc ( 'B' ) } ` ) ;
114
114
await terminal . assertCommandDecorations ( { placeholder : 1 , success : 1 , error : 1 } ) ;
115
115
} ) ;
116
116
} ) ;
117
117
describe ( 'Final Term sequences' , ( ) => {
118
118
it ( 'should handle the simple case' , async ( ) => {
119
- await terminal . runCommandWithValue ( TerminalCommandIdWithValue . WriteDataToTerminal , `${ ft ( 'A' ) } Prompt> ${ ft ( 'B' ) } exitcode 0` ) ;
119
+ await terminal . runCommandWithValue ( TerminalCommandIdWithValue . SendSequence , `${ ft ( 'A' ) } Prompt> ${ ft ( 'B' ) } exitcode 0` ) ;
120
120
await terminal . assertCommandDecorations ( { placeholder : 1 , success : 0 , error : 0 } ) ;
121
- await terminal . runCommandWithValue ( TerminalCommandIdWithValue . WriteDataToTerminal , `\\r\\n${ ft ( 'C' ) } Success\\r\\n${ ft ( 'D;0' ) } ` ) ;
121
+ await terminal . runCommandWithValue ( TerminalCommandIdWithValue . SendSequence , `\\r\\n${ ft ( 'C' ) } Success\\r\\n${ ft ( 'D;0' ) } ` ) ;
122
122
await terminal . assertCommandDecorations ( { placeholder : 0 , success : 1 , error : 0 } ) ;
123
- await terminal . runCommandWithValue ( TerminalCommandIdWithValue . WriteDataToTerminal , `${ ft ( 'A' ) } Prompt> ${ ft ( 'B' ) } exitcode 1` ) ;
123
+ await terminal . runCommandWithValue ( TerminalCommandIdWithValue . SendSequence , `${ ft ( 'A' ) } Prompt> ${ ft ( 'B' ) } exitcode 1` ) ;
124
124
await terminal . assertCommandDecorations ( { placeholder : 1 , success : 1 , error : 0 } ) ;
125
- await terminal . runCommandWithValue ( TerminalCommandIdWithValue . WriteDataToTerminal , `\\r\\n${ ft ( 'C' ) } Failure\\r\\n${ ft ( 'D;1' ) } ` ) ;
125
+ await terminal . runCommandWithValue ( TerminalCommandIdWithValue . SendSequence , `\\r\\n${ ft ( 'C' ) } Failure\\r\\n${ ft ( 'D;1' ) } ` ) ;
126
126
await terminal . assertCommandDecorations ( { placeholder : 0 , success : 1 , error : 1 } ) ;
127
- await terminal . runCommandWithValue ( TerminalCommandIdWithValue . WriteDataToTerminal , `${ ft ( 'A' ) } Prompt> ${ ft ( 'B' ) } exitcode 1` ) ;
127
+ await terminal . runCommandWithValue ( TerminalCommandIdWithValue . SendSequence , `${ ft ( 'A' ) } Prompt> ${ ft ( 'B' ) } exitcode 1` ) ;
128
128
await terminal . assertCommandDecorations ( { placeholder : 1 , success : 1 , error : 1 } ) ;
129
129
} ) ;
130
130
} ) ;
0 commit comments