-
Notifications
You must be signed in to change notification settings - Fork 8
Created generic quick pick util class to support various use cases #1272
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
Conversation
Signed-off-by: gnana997 <[email protected]>
Signed-off-by: gnana997 <[email protected]>
Hi @shouples , I went through the |
Hey @gnana997, this is working nicely so far! Just one test failure running locally (via
My only suggestion for now would be to include Thanks for helping out with this -- I'll try to provide a more thorough review next week. |
Signed-off-by: gnana997 <[email protected]>
b2b37d5
to
272cac8
Compare
Hi @shouples , I have updated the failing test case and also updated the class to use QuickPickItemWithValue along with JSDoc comments on usage. Should I start migrating functions with Thanks! |
/sem-approve |
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.
This is looking really nice so far @gnana997! Let's handle migrating the rest of the quickpicks in other smaller PRs. I'll write up some follow-on issues once this PR is merged.
For now I just have a couple questions and suggestions for some cleanup/consolidation.
Signed-off-by: gnana997 <[email protected]>
…tored test cases for createQuickPick Signed-off-by: gnana997 <[email protected]>
Signed-off-by: gnana997 <[email protected]>
Signed-off-by: gnana997 <[email protected]>
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.
This is really close @gnana997! Just one thing left to fix and then I think this one is good to merge. 🙏
edit: two things: one for the selectedItems
handling, one for the Disposable
s cleanup
// If we have pre-selected items and haven't captured any selections yet, | ||
// use the pre-selected items | ||
if (selectedItems.length === 0 && options?.selectedItems) { | ||
selectedItems = [...options.selectedItems]; | ||
} |
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.
I noticed some strange behavior when clicking the ⚙️ icon (either against the Kafka item or the SR item) where it seems to continue the user flow as if clicking "OK" or hitting "Enter":
local-item-button.mov
I think removing the section here and only assigning selectedItems
during onDidAccept
will fix this and keep the behavior consistent with what's currently on main
.
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.
Thanks for taking care of those other fixes @gnana997! Looks like this is the last part needed before we can merge.
Co-authored-by: Dave Shoup <[email protected]>
Co-authored-by: Dave Shoup <[email protected]>
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.
Thanks again for all your help on this @gnana997 - I'm going to merge it as-is and address my last comment in a follow-up PR.
Summary of Changes
Any additional details or context that should be provided?
createQuickPick
and migrate offshowQuickPick
#1127Pull request checklist
Please check if your PR fulfills the following (if applicable):
Tests
Other
.vsix
file?