Skip to content

Need an API to determine when Python is still busy discovering interpreters #20188

Closed
@DonJayamanne

Description

@DonJayamanne

Based on our previous discussions I was informed that calling refresh on the new Python API would be a noop if Python has already started the refresh. Thus we'd get a promise back letting us know if and when python has completed refreshing/loading the interpreters.
However based on the latest discussions this is not the case.

Here's what was previously discussed:

This is what we need:

  • If Python is busy discovering interpreters we need to know this
    It doesn't need to be a promise, it could be an event along with a status property (as previously discussed),
    This way the change even triggers when theres' a change in the state
    and a status property contains the current status refreshing|idle|etc...

@karrtikr this is something we wanted in the previous API, hence filing this as a bug.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from postertriage-neededNeeds assignment to the proper sub-team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions