Skip to content

Commit b7e72fe

Browse files
author
Kartik Raj
authored
Add comment clarifying when autoselection happens (#19064)
1 parent 2e7b0e3 commit b7e72fe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/client/interpreter/interpreterService.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ export class InterpreterService implements Disposable, IInterpreterService {
154154
let path = this.configService.getSettings(resource).pythonPath;
155155
if (pathUtils.basename(path) === path) {
156156
// Value can be `python`, `python3`, `python3.9` etc.
157+
// Note the following triggers autoselection if no interpreter is explictly
158+
// selected, i.e the value is `python`.
157159
// During shutdown we might not be able to get items out of the service container.
158160
const pythonExecutionFactory = this.serviceContainer.tryGet<IPythonExecutionFactory>(
159161
IPythonExecutionFactory,

0 commit comments

Comments
 (0)