pyrefly icon indicating copy to clipboard operation
pyrefly copied to clipboard

Quickfix insert parameter types

Open connernilsen opened this issue 4 months ago • 8 comments

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.

connernilsen avatar Jul 21 '26 20:07 connernilsen

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

github-actions[bot] avatar Jul 22 '26 05:07 github-actions[bot]

I'd like to work on this. #claim

shubhamshettyy avatar Jul 22 '26 05:07 shubhamshettyy

@shubhamshettyy you've claimed this issue — it's now assigned to you. Thanks for picking it up! 🎉

github-actions[bot] avatar Jul 22 '26 05:07 github-actions[bot]

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!

github-actions[bot] avatar Aug 06 '26 00:08 github-actions[bot]

Hi, I am willing to work on this. Can it be assigned to me? #claim

ShreyaDubey1001 avatar Aug 25 '26 13:08 ShreyaDubey1001

@connernilsen hi, can i be assigned this issue?

jny0444 avatar Oct 10 '26 05:10 jny0444

@La1itchauhan this issue is already claimed by @shubhamshettyy. Please coordinate with them before starting.

github-actions[bot] avatar Oct 19 '26 18:10 github-actions[bot]

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

rchen152 avatar Nov 05 '26 04:11 rchen152