rust-analyzer.inlayHints.typeHints.location was added in #21322, the value "end_of_line" leads to the type hint being rendered at the end, including the initial colon unless rust-analyzer.inlayHints.renderColons is set to false. Example: #4318 (comment)
It would be great if there was a way to disable the colons just for the inlay hints at the end of the line, so you don't have to disable all colons if you don't like the ones for the end_of_line case.
Some users might prefer to have the colon be there (for example to avoid the hint looking like a method chaining hint), so I guess the current behaviour could be kept available or even as default.
Has been mentioned previously:
Maybe it will be kind of weird if the inlay hint is put at the end of the line and still started with ":", I think the text should also be modified with the change of placing way
Originally posted by @Decodetalkers in #21322 (comment)
rust-analyzer.inlayHints.typeHints.locationwas added in #21322, the value"end_of_line"leads to the type hint being rendered at the end, including the initial colon unlessrust-analyzer.inlayHints.renderColonsis set to false. Example: #4318 (comment)It would be great if there was a way to disable the colons just for the inlay hints at the end of the line, so you don't have to disable all colons if you don't like the ones for the end_of_line case.
Some users might prefer to have the colon be there (for example to avoid the hint looking like a method chaining hint), so I guess the current behaviour could be kept available or even as default.
Has been mentioned previously: