Skip to content

Commit b9fd274

Browse files
committed
shell integration in python shell doesnt exist for windows
1 parent eab8794 commit b9fd274

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/client/common/terminal/service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import {
2121
} from './types';
2222
import { traceVerbose } from '../../logging';
2323
import { getConfiguration } from '../vscodeApis/workspaceApis';
24+
import { isWindows } from '../platform/platformService';
2425

2526
@injectable()
2627
export class TerminalService implements ITerminalService, Disposable {
@@ -104,7 +105,7 @@ export class TerminalService implements ITerminalService, Disposable {
104105

105106
const config = getConfiguration('python');
106107
const pythonrcSetting = config.get<boolean>('terminal.shellIntegration.enabled');
107-
if (isPythonShell && !pythonrcSetting) {
108+
if ((isPythonShell && !pythonrcSetting) || (isPythonShell && isWindows())) {
108109
// If user has explicitly disabled SI for Python, use sendText for inside Terminal REPL.
109110
terminal.sendText(commandLine);
110111
return undefined;

0 commit comments

Comments
 (0)