Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 10 commits into from
Aug 4, 2022

Conversation

karrtikr
Copy link

@karrtikr karrtikr commented Aug 3, 2022

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 karrtikr added the feature-request Request for new features or functionality label Aug 3, 2022
@@ -145,18 +145,22 @@ export class MultiStepInput<S> implements IMultiStepInput<S> {
input.activeItems = [];
}
input.buttons = this.steps.length > 1 ? [QuickInputButtons.Back] : [];
if (customButtonSetup) {
input.buttons = [...input.buttons, customButtonSetup.button];
if (customButtonSetups) {

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
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
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.

Copy link

@paulacamargo25 paulacamargo25 left a comment

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 karrtikr merged commit 2379238 into microsoft:main Aug 4, 2022
@karrtikr karrtikr deleted the addhardrefresh branch August 4, 2022 21:15
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