Skip to content

Commit

Permalink
Install Python should only be visible when we can not find any python…
Browse files Browse the repository at this point in the history
… interpreter. (#11971)
  • Loading branch information
rebornix authored Nov 10, 2022
1 parent 0986b8f commit 184e5db
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ export class InstallPythonControllerCommands implements IExtensionSingleActivati
return;
}

// Python extension is installed, let's wait for interpreters to be detected
if (this.interpreterService.environments.length === 0) {
await this.interpreterService.waitForAllInterpretersToLoad();
}

if (this.interpreterService.environments.length === 0) {
// Extension is installed, but we didn't find any python connections
// recommend installing python in this case
Expand Down

0 comments on commit 184e5db

Please sign in to comment.