Skip to content

feat: Inlay hints with text edits can be applied when clicking on them - #1505

Open
FlorianKroiss wants to merge 1 commit into
eclipse-lsp4e:mainfrom
FlorianKroiss:inlay-text-edits
Open

feat: Inlay hints with text edits can be applied when clicking on them#1505
FlorianKroiss wants to merge 1 commit into
eclipse-lsp4e:mainfrom
FlorianKroiss:inlay-text-edits

Conversation

@FlorianKroiss

@FlorianKroiss FlorianKroiss commented Feb 26, 2026

Copy link
Copy Markdown
Contributor

Inlay hints can have text-edits, which VS Code applies when double clicking on them. We already had support for executing commands when clicking on individual parts of the inlay hint. With this PR, we additionally check if there are text-edits and apply them, when the user clicks on it.

It looks like this in action:
https://github.com/user-attachments/assets/aa7bd610-e727-40bf-b326-b8ca468552c0

In the above example, the LS inferred the type of the right hand side expression and the user can accept the inferred type.

@FlorianKroiss

This comment was marked as resolved.

@FlorianKroiss
FlorianKroiss force-pushed the inlay-text-edits branch 2 times, most recently from cba6e66 to 2c2b6c7 Compare June 17, 2026 18:23
@FlorianKroiss
FlorianKroiss marked this pull request as ready for review July 19, 2026 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants