@@ -25,8 +25,6 @@ import { ITerminalAutoActivation } from '../../../client/terminals/types';
25
25
import { createPythonInterpreter } from '../../utils/interpreters' ;
26
26
import * as workspaceApis from '../../../client/common/vscodeApis/workspaceApis' ;
27
27
import * as platform from '../../../client/common/utils/platform' ;
28
- import { IInterpreterService } from '../../../client/interpreter/contracts' ;
29
- import { PythonEnvironment } from '../../../client/pythonEnvironments/info' ;
30
28
31
29
suite ( 'Terminal Service' , ( ) => {
32
30
let service : TerminalService ;
@@ -46,7 +44,6 @@ suite('Terminal Service', () => {
46
44
let pythonConfig : TypeMoq . IMock < WorkspaceConfiguration > ;
47
45
let editorConfig : TypeMoq . IMock < WorkspaceConfiguration > ;
48
46
let isWindowsStub : sinon . SinonStub ;
49
- let interpreterService : TypeMoq . IMock < IInterpreterService > ;
50
47
51
48
setup ( ( ) => {
52
49
terminal = TypeMoq . Mock . ofType < VSCodeTerminal > ( ) ;
@@ -90,10 +87,6 @@ suite('Terminal Service', () => {
90
87
disposables = [ ] ;
91
88
92
89
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 ) ) ;
97
90
98
91
mockServiceContainer . setup ( ( c ) => c . get ( ITerminalManager ) ) . returns ( ( ) => terminalManager . object ) ;
99
92
mockServiceContainer . setup ( ( c ) => c . get ( ITerminalHelper ) ) . returns ( ( ) => terminalHelper . object ) ;
@@ -102,8 +95,6 @@ suite('Terminal Service', () => {
102
95
mockServiceContainer . setup ( ( c ) => c . get ( IWorkspaceService ) ) . returns ( ( ) => workspaceService . object ) ;
103
96
mockServiceContainer . setup ( ( c ) => c . get ( ITerminalActivator ) ) . returns ( ( ) => terminalActivator . object ) ;
104
97
mockServiceContainer . setup ( ( c ) => c . get ( ITerminalAutoActivation ) ) . returns ( ( ) => terminalAutoActivator . object ) ;
105
- mockServiceContainer . setup ( ( c ) => c . get ( IInterpreterService ) ) . returns ( ( ) => interpreterService . object ) ;
106
-
107
98
getConfigurationStub = sinon . stub ( workspaceApis , 'getConfiguration' ) ;
108
99
isWindowsStub = sinon . stub ( platform , 'isWindows' ) ;
109
100
pythonConfig = TypeMoq . Mock . ofType < WorkspaceConfiguration > ( ) ;
@@ -243,7 +234,7 @@ suite('Terminal Service', () => {
243
234
terminal . verify ( ( t ) => t . sendText ( TypeMoq . It . isValue ( textToSend ) ) , TypeMoq . Times . exactly ( 1 ) ) ;
244
235
} ) ;
245
236
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 ( ) => {
247
238
isWindowsStub . returns ( false ) ;
248
239
pythonConfig
249
240
. setup ( ( p ) => p . get ( 'terminal.shellIntegration.enabled' ) )
0 commit comments