Skip to content

make inlay hints typing debounce max delay configurable #145377

@jhgg

Description

@jhgg

recently, rust-analyzer switched to using vs code's inlay hints provider. however, due to:

const delay = Math.max(scheduler.delay, 1250);
there is a delay for inlay hints when typing.

However, I think that this actually makes the experience feel much worse if your language server is able to compute inlay hints quite quickly, and indeed users of the extension have noted this fact as well!

I have only noticed that after I took the screenshot, I also couldn't reproduce whatever glitch that was. Maybe it's worth noting though, that at least in my case I have noticed that the inlay hints take longer now to render in my VsCode for whatever reason.

rust-lang/rust-analyzer#11733 (comment)

This feature requests proposes to make the hard-coded 1250 be configurable via user settings.

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalityinlay-hintson-release-notesIssue/pull request mentioned in release notesverification-neededVerification of issue is requestedverifiedVerification succeeded

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions