Skip to content

Add button to clear list and refresh in interpreters quickpick - #19628

Merged
Kartik Raj (karrtikr) merged 10 commits into
microsoft:mainfrom
karrtikr:addhardrefresh
Aug 4, 2022
Merged

Kartik Raj (karrtikr) merged 10 commits into
microsoft:mainfrom
karrtikr:addhardrefresh

Conversation

@karrtikr

@karrtikr Kartik Raj (karrtikr) commented Aug 3, 2022 •

Copy link
Copy Markdown

Closes #19621

Based on #19611, please only review the last commit: fe5d492.

After consulting with Luciana, added another button to support hard refreshing, which clears the cache before refreshing.

hardrefresh2

@karrtikr Kartik Raj (karrtikr) added the feature-request Request for new features or functionality label Aug 3, 2022
input.buttons = this.steps.length > 1 ? [QuickInputButtons.Back] : [];
if (customButtonSetup) {
input.buttons = [...input.buttons, customButtonSetup.button];
if (customButtonSetups) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

If it is an array you should evaluate if it's empty, otherwise it will always enter here.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

We want to always enter here, can you explain how evaluating if an array is empty helpful?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Let me know if I missed something and I can fix it in the next PR.

@paulacamargo25 Paula (paulacamargo25) left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Looks good for me, i just put a single comment.

@karrtikr
Kartik Raj (karrtikr) merged commit 2379238 into microsoft:main Aug 4, 2022
@karrtikr
Kartik Raj (karrtikr) deleted the addhardrefresh branch August 4, 2022 21:15
Wes McKinney (wesm) pushed a commit to posit-dev/positron that referenced this pull request Mar 28, 2024
…soft/vscode-python#19628)

* Change refresh icon when interpreter list is refreshing

* Add tests

* Minor tweaks

* Fix situation if dialog box is cancelled

* Fix tests

* Improve ignoreErrors() typing

* Update to not use custom svg, instead use built VSCode icon

* Add vscode mock

* Add button to clear interpreters list and refresh in quickpick
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature-request Request for new features or functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add/fix buttons in the interpreter quickpick list

2 participants