@@ -25,7 +25,7 @@ import { useEnvExtension } from '../../envExt/api.internal';
2525import { ensureTerminalLegacy } from '../../envExt/api.legacy' ;
2626import { sleep } from '../utils/async' ;
2727import { isWindows } from '../utils/platform' ;
28- import { getPythonMinorVersion } from '../../repl/replUtils' ;
28+ // import { getPythonMinorVersion } from '../../repl/replUtils';
2929
3030@injectable ( )
3131export class TerminalService implements ITerminalService , Disposable {
@@ -110,14 +110,15 @@ export class TerminalService implements ITerminalService, Disposable {
110110 const config = getConfiguration ( 'python' ) ;
111111 const pythonrcSetting = config . get < boolean > ( 'terminal.shellIntegration.enabled' ) ;
112112
113- const minorVersion = this . options ?. resource
114- ? await getPythonMinorVersion (
115- this . options . resource ,
116- this . serviceContainer . get < IInterpreterService > ( IInterpreterService ) ,
117- )
118- : undefined ;
113+ // const minorVersion = this.options?.resource
114+ // ? await getPythonMinorVersion(
115+ // this.options.resource,
116+ // this.serviceContainer.get<IInterpreterService>(IInterpreterService),
117+ // )
118+ // : undefined;
119+ // || (minorVersion ?? 0) >= 13
119120
120- if ( ( isPythonShell && ! pythonrcSetting ) || ( isPythonShell && isWindows ( ) ) || ( minorVersion ?? 0 ) >= 13 ) {
121+ if ( ( isPythonShell && ! pythonrcSetting ) || ( isPythonShell && isWindows ( ) ) ) {
121122 // If user has explicitly disabled SI for Python, use sendText for inside Terminal REPL.
122123 terminal . sendText ( commandLine ) ;
123124 return undefined ;
0 commit comments