rust-analyzer icon indicating copy to clipboard operation
rust-analyzer copied to clipboard

disable double-click to insert inlay hints for standard library and 3rd party code

Open DetachHead opened this issue 3 months ago • 3 comments

Image

i often accidentally double click inlay hints, and it's difficult to tell when it happens on third party or standard library code because it's obviously not version controlled. it would be nice if the language server would omit the textEdits in the inlay hint response for these files

DetachHead avatar Nov 23 '25 04:11 DetachHead

Duplicate of #17890 and #15535. I still think this is a client issue. And we'd also like to be able to mark library files as read-only, to prevent accidents like that.

lnicola avatar Nov 23 '25 06:11 lnicola

I don't think the clients even knows the files belong to a library?

ChayimFriedman2 avatar Nov 23 '25 07:11 ChayimFriedman2

They don't, but #5847.

lnicola avatar Nov 23 '25 07:11 lnicola