@@ -25,6 +25,7 @@ import { PYTHON_PATH } from '../../common';
2525import { Architecture } from '../../../client/common/utils/platform' ;
2626import { ProcessService } from '../../../client/common/process/proc' ;
2727import { l10n } from '../../mocks/vsc' ;
28+ import { ReplType } from '../../../client/repl/types' ;
2829
2930const TEST_FILES_PATH = path . join ( EXTENSION_ROOT_DIR , 'src' , 'test' , 'python_files' , 'terminalExec' ) ;
3031
@@ -145,7 +146,7 @@ suite('REPL - Smart Send', () => {
145146 . setup ( ( p ) => p . execObservable ( TypeMoq . It . isAny ( ) , TypeMoq . It . isAny ( ) , TypeMoq . It . isAny ( ) ) )
146147 . returns ( ( file , args , options ) => execObservable . apply ( actualProcessService , [ file , args , options ] ) ) ;
147148
148- await codeExecutionHelper . normalizeLines ( 'my_dict = {' , wholeFileContent ) ;
149+ await codeExecutionHelper . normalizeLines ( 'my_dict = {' , ReplType . terminal , wholeFileContent ) ;
149150
150151 commandManager
151152 . setup ( ( c ) => c . executeCommand ( 'cursorMove' , TypeMoq . It . isAny ( ) ) )
@@ -197,7 +198,11 @@ suite('REPL - Smart Send', () => {
197198 . setup ( ( p ) => p . execObservable ( TypeMoq . It . isAny ( ) , TypeMoq . It . isAny ( ) , TypeMoq . It . isAny ( ) ) )
198199 . returns ( ( file , args , options ) => execObservable . apply ( actualProcessService , [ file , args , options ] ) ) ;
199200
200- const actualSmartOutput = await codeExecutionHelper . normalizeLines ( 'my_dict = {' , wholeFileContent ) ;
201+ const actualSmartOutput = await codeExecutionHelper . normalizeLines (
202+ 'my_dict = {' ,
203+ ReplType . terminal ,
204+ wholeFileContent ,
205+ ) ;
201206
202207 // my_dict = { <----- smart shift+enter here
203208 // "key1": "value1",
@@ -247,7 +252,11 @@ suite('REPL - Smart Send', () => {
247252 . setup ( ( p ) => p . execObservable ( TypeMoq . It . isAny ( ) , TypeMoq . It . isAny ( ) , TypeMoq . It . isAny ( ) ) )
248253 . returns ( ( file , args , options ) => execObservable . apply ( actualProcessService , [ file , args , options ] ) ) ;
249254
250- const actualNonSmartResult = await codeExecutionHelper . normalizeLines ( 'my_dict = {' , wholeFileContent ) ;
255+ const actualNonSmartResult = await codeExecutionHelper . normalizeLines (
256+ 'my_dict = {' ,
257+ ReplType . terminal ,
258+ wholeFileContent ,
259+ ) ;
251260 const expectedNonSmartResult = 'my_dict = {\n\n' ; // Standard for previous normalization logic
252261 expect ( actualNonSmartResult ) . to . be . equal ( expectedNonSmartResult ) ;
253262 } ) ;
@@ -285,7 +294,7 @@ suite('REPL - Smart Send', () => {
285294 . setup ( ( p ) => p . execObservable ( TypeMoq . It . isAny ( ) , TypeMoq . It . isAny ( ) , TypeMoq . It . isAny ( ) ) )
286295 . returns ( ( file , args , options ) => execObservable . apply ( actualProcessService , [ file , args , options ] ) ) ;
287296
288- await codeExecutionHelper . normalizeLines ( 'my_dict = {' , wholeFileContent ) ;
297+ await codeExecutionHelper . normalizeLines ( 'my_dict = {' , ReplType . terminal , wholeFileContent ) ;
289298
290299 applicationShell
291300 . setup ( ( a ) =>
0 commit comments