Skip to content

Commit c6dfed7

Browse files
committed
why
1 parent 78f9298 commit c6dfed7

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/client/common/terminal/service.ts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { useEnvExtension } from '../../envExt/api.internal';
2525
import { ensureTerminalLegacy } from '../../envExt/api.legacy';
2626
import { sleep } from '../utils/async';
2727
import { isWindows } from '../utils/platform';
28-
import { getPythonMinorVersion } from '../../repl/replUtils';
28+
// import { getPythonMinorVersion } from '../../repl/replUtils';
2929

3030
@injectable()
3131
export 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

Comments
 (0)