Quickfix insert parameter types
In the IDE, we're often able to display the types of the parameters to a function or the type of a variable with Pyrefly's inference on the inlay hint request. Users can choose to insert these type suggestions by double clicking on the displayed types, but it would likely also be a good user experience to surface these suggestions through code actions, probably the quickfix handler.
You'll likely want to look at pyrefly/lib/lsp/non_wasm/server.rs to see how we get the hints for a file (fn inlay_hints), then pull out the hint for the current position.
@c3-shubhamshetty I couldn't assign this issue to you automatically — GitHub only allows assigning users with repository access. A maintainer can assign you manually.
I'd like to work on this. #claim
@shubhamshettyy you've claimed this issue — it's now assigned to you. Thanks for picking it up! 🎉
This issue has someone assigned, but has not had recent activity for more than 2 weeks.
If you are still working on this issue, please add a comment so everyone knows. Otherwise, please unassign yourself and allow someone else to take over.
Thank you for your contributions!
Hi, I am willing to work on this. Can it be assigned to me? #claim
@connernilsen hi, can i be assigned this issue?
@La1itchauhan this issue is already claimed by @shubhamshettyy. Please coordinate with them before starting.
Here's a code pointer (I'm doing a sweep adding them to good first issues): https://github.com/meta/pyrefly/blob/07421c64ce4c7b37365c0481f1faa0ab91a0a24a/pyrefly/lib/state/lsp.rs#L3714