8000 support double clicking to insert inlay hints · Issue #317 · astral-sh/ty · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

support double clicking to insert inlay hints #317

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

Open
DetachHead opened this issue May 11, 2025 · 2 comments
Open

support double clicking to insert inlay hints #317

DetachHead opened this issue May 11, 2025 · 2 comments
Labels
server Related to the LSP server wish Not on the current roadmap; maybe in the future

Comments

@DetachHead
Copy link

before:

Image

after:

Image

@MichaReiser
Copy link
Member
MichaReiser commented May 12, 2025

What's asked here is to support the inlayHints textEdits property.

This is mostly straightforward with the exception that our type.display(db) doesn't always return valid Python syntax.

@MichaReiser MichaReiser added server Related to the LSP server wish Not on the current roadmap; maybe in the future labels May 12, 2025
@DetachHead
Copy link
Author
DetachHead commented May 12, 2025

yeah. pyright's type printer handles this with a PythonSyntax flag that can be passed to the type printer. that flag is used for inlay hints but not hover:

Image

playground

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
server Related to the LSP server wish Not on the current roadmap; maybe in the future
Projects
None yet
Development

No branches or pull requests

2 participants
0