@@ -25,8 +25,6 @@ import { ITerminalAutoActivation } from '../../../client/terminals/types';
2525import { createPythonInterpreter } from '../../utils/interpreters' ;
2626import * as workspaceApis from '../../../client/common/vscodeApis/workspaceApis' ;
2727import * as platform from '../../../client/common/utils/platform' ;
28- import { IInterpreterService } from '../../../client/interpreter/contracts' ;
29- import { PythonEnvironment } from '../../../client/pythonEnvironments/info' ;
3028
3129suite ( 'Terminal Service' , ( ) => {
3230 let service : TerminalService ;
@@ -46,7 +44,6 @@ suite('Terminal Service', () => {
4644 let pythonConfig : TypeMoq . IMock < WorkspaceConfiguration > ;
4745 let editorConfig : TypeMoq . IMock < WorkspaceConfiguration > ;
4846 let isWindowsStub : sinon . SinonStub ;
49- let interpreterService : TypeMoq . IMock < IInterpreterService > ;
5047
5148 setup ( ( ) => {
5249 terminal = TypeMoq . Mock . ofType < VSCodeTerminal > ( ) ;
@@ -90,10 +87,6 @@ suite('Terminal Service', () => {
9087 disposables = [ ] ;
9188
9289 mockServiceContainer = TypeMoq . Mock . ofType < IServiceContainer > ( ) ;
93- interpreterService = TypeMoq . Mock . ofType < IInterpreterService > ( ) ;
94- interpreterService
95- . setup ( ( i ) => i . getActiveInterpreter ( TypeMoq . It . isAny ( ) ) )
96- . returns ( ( ) => Promise . resolve ( ( { path : 'ps' } as unknown ) as PythonEnvironment ) ) ;
9790
9891 mockServiceContainer . setup ( ( c ) => c . get ( ITerminalManager ) ) . returns ( ( ) => terminalManager . object ) ;
9992 mockServiceContainer . setup ( ( c ) => c . get ( ITerminalHelper ) ) . returns ( ( ) => terminalHelper . object ) ;
@@ -102,8 +95,6 @@ suite('Terminal Service', () => {
10295 mockServiceContainer . setup ( ( c ) => c . get ( IWorkspaceService ) ) . returns ( ( ) => workspaceService . object ) ;
10396 mockServiceContainer . setup ( ( c ) => c . get ( ITerminalActivator ) ) . returns ( ( ) => terminalActivator . object ) ;
10497 mockServiceContainer . setup ( ( c ) => c . get ( ITerminalAutoActivation ) ) . returns ( ( ) => terminalAutoActivator . object ) ;
105- mockServiceContainer . setup ( ( c ) => c . get ( IInterpreterService ) ) . returns ( ( ) => interpreterService . object ) ;
106-
10798 getConfigurationStub = sinon . stub ( workspaceApis , 'getConfiguration' ) ;
10899 isWindowsStub = sinon . stub ( platform , 'isWindows' ) ;
109100 pythonConfig = TypeMoq . Mock . ofType < WorkspaceConfiguration > ( ) ;
@@ -243,7 +234,7 @@ suite('Terminal Service', () => {
243234 terminal . verify ( ( t ) => t . sendText ( TypeMoq . It . isValue ( textToSend ) ) , TypeMoq . Times . exactly ( 1 ) ) ;
244235 } ) ;
245236
246- test ( 'Ensure sendText is NOT called when Python shell integration and terminal shell integration are both enabled - Mac, Linux - !Python3.13 ' , async ( ) => {
237+ test ( 'Ensure sendText is NOT called when Python shell integration and terminal shell integration are both enabled - Mac, Linux' , async ( ) => {
247238 isWindowsStub . returns ( false ) ;
248239 pythonConfig
249240 . setup ( ( p ) => p . get ( 'terminal.shellIntegration.enabled' ) )
0 commit comments