facebook / facebook/pyrefly

Quickfix insert parameter types

Open
#4,231 5 comments 0 reactions 1 assignee Claimed by @shubhamshettyy View on GitHub
good first issue infer language-server stale UI/UX
Dominant language
Rust
Stars
7k
Forks
516
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.