Skip to content

Commit 3a0eb66

Browse files
committed
Ensure cancellation is supported for conda env creation.
1 parent 84e3309 commit 3a0eb66

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/client/pythonEnvironments/creation/provider/condaCreationProvider.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,10 @@ async function createEnvironment(options?: CreateEnvironmentOptions): Promise<Cr
192192
throw ex;
193193
}
194194

195+
if (version === undefined) {
196+
traceError('Python version was not selected for creating conda environment.');
197+
return MultiStepAction.Cancel;
198+
}
195199
return MultiStepAction.Continue;
196200
},
197201
undefined,

0 commit comments

Comments
 (0)