File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/client/common/terminal Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import {
2121} from './types' ;
2222import { traceVerbose } from '../../logging' ;
2323import { getConfiguration } from '../vscodeApis/workspaceApis' ;
24+ import { isWindows } from '../platform/platformService' ;
2425
2526@injectable ( )
2627export 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 ;
You can’t perform that action at this time.
0 commit comments