Skip to content

Conversation

karrtikr
Copy link

Closes #19562 closes #19576 closes #19574

@karrtikr karrtikr added the no-changelog No news entry required label Jul 27, 2022
const stopWatch = new StopWatch();
let refreshPromise = this.getRefreshPromiseForQuery(query);
if (!refreshPromise) {
if (options?.ifNotTriggerredAlready && this.hasRefreshFinished(query) && this.getEnvs().length) {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Causes an infinite loop #19574.

// refresh button if they want to trigger it more than once. However if no envs were found previously,
// always trigger a refresh.
if (this.interpreterService.getInterpreters().length === 0) {
this.interpreterService.triggerRefresh().ignoreErrors();
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead the consumers themselves can implement this option.

@karrtikr karrtikr marked this pull request as ready for review July 27, 2022 23:38
@karrtikr karrtikr merged commit 752c0cc into main Jul 28, 2022
@karrtikr karrtikr deleted the kartik/buigwind branch July 28, 2022 00:32
@karrtikr karrtikr restored the kartik/buigwind branch July 28, 2022 00:32
@karrtikr karrtikr deleted the kartik/buigwind branch July 28, 2022 00:32
wesm pushed a commit to posit-dev/positron that referenced this pull request Mar 28, 2024
…in quickpicker (microsoft/vscode-python#19579)

* Ensure a refresh is only triggered after all handlers are registered for the quickpick

* Do not show install python item until we're sure no python is installed

* Fix tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog No news entry required
Projects
None yet
2 participants