Skip to content

Commit

Permalink
shell integration in python shell doesnt exist for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonykim1 committed Dec 4, 2024
1 parent eab8794 commit b9fd274
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/client/common/terminal/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {
} from './types';
import { traceVerbose } from '../../logging';
import { getConfiguration } from '../vscodeApis/workspaceApis';
import { isWindows } from '../platform/platformService';

@injectable()
export class TerminalService implements ITerminalService, Disposable {
Expand Down Expand Up @@ -104,7 +105,7 @@ export class TerminalService implements ITerminalService, Disposable {

const config = getConfiguration('python');
const pythonrcSetting = config.get<boolean>('terminal.shellIntegration.enabled');
if (isPythonShell && !pythonrcSetting) {
if ((isPythonShell && !pythonrcSetting) || (isPythonShell && isWindows())) {
// If user has explicitly disabled SI for Python, use sendText for inside Terminal REPL.
terminal.sendText(commandLine);
return undefined;
Expand Down

0 comments on commit b9fd274

Please sign in to comment.