-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Conversation
@@ -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) { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this 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.
…o addhardrefresh
…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
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.