Skip to content

Commit 4885587

Browse files
committed
take suggestion to refactor
1 parent 72096c3 commit 4885587

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/common/terminal/service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export class TerminalService implements ITerminalService, Disposable {
105105

106106
const config = getConfiguration('python');
107107
const pythonrcSetting = config.get<boolean>('terminal.shellIntegration.enabled');
108-
if ((isPythonShell && !pythonrcSetting) || (isPythonShell && isWindows()) || (isPythonShell && isWsl())) {
108+
if (isPythonShell && (!pythonrcSetting || isWindows() || isWsl())) {
109109
// If user has explicitly disabled SI for Python, use sendText for inside Terminal REPL.
110110
terminal.sendText(commandLine);
111111
return undefined;

0 commit comments

Comments
 (0)