QuickPickOptions unusable typings small fix#30819
Conversation
|
@amadare42, thanks for your PR! By analyzing the history of the files in this pull request, we identified @egamma and @jrieken to be potential reviewers. |
|
This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request. |
|
@mhegazy Can you shed some light on this? This is the signature in question: |
|
Merging for being compile errors free, tho I still don't understand this. @mjbvz Can you bring this up in the next TS sync? |
|
Thanks. I've opened microsoft/TypeScript#17432 to track this issue |
When calling
vscode.window.showQuickPickwith custom type items,onDidSelectItemcallback cannot be correctly typed:That because of way which typescript handles generic constraints ( microsoft/TypeScript#3410 (comment) ). So easy fix to make it usable is to just change constraint to base QuickPickItem interface.