Skip to content

Commit 7931c94

Browse files
author
Kartik Raj
authored
Fix using shell for commands related to conda installation" (#18769)
1 parent 2d135c5 commit 7931c94

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/client/common/installer/moduleInstaller.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ export abstract class ModuleInstaller implements IModuleInstaller {
105105
pythonPath,
106106
args.concat(['--user']),
107107
token,
108+
executionInfo.useShell,
108109
);
109110
}
110111
} else {
@@ -114,6 +115,7 @@ export abstract class ModuleInstaller implements IModuleInstaller {
114115
executionInfo.execPath!,
115116
executionInfoArgs,
116117
token,
118+
executionInfo.useShell,
117119
);
118120
}
119121
};
@@ -193,8 +195,8 @@ export abstract class ModuleInstaller implements IModuleInstaller {
193195
resource: InterpreterUri | undefined,
194196
command: string,
195197
args: string[],
196-
token?: CancellationToken,
197-
useShell?: boolean,
198+
token: CancellationToken | undefined,
199+
useShell: boolean | undefined,
198200
) {
199201
const options: TerminalCreationOptions = {};
200202
if (isResource(resource)) {

0 commit comments

Comments
 (0)