kitamstudios / rust-analyzer.vs

Rust language support for Visual Studio 2022
https://marketplace.visualstudio.com/items?itemName=kitamstudios.RustAnalyzer
Other
138 stars 10 forks source link

Incorrect colorization of methods #21

Closed nolekev1214 closed 7 months ago

nolekev1214 commented 1 year ago

Methods are not given a coloring, and are instead displayed as white text. Consider giving methods the same color as functions.

image

In the above image, the method Iterator::collect(self) is not given the same color as the function std::env::args().

parthopdas commented 1 year ago

this is odd. are you able to F12 navigate to the method / class definitions?

nolekev1214 commented 1 year ago

After double checking it today everything seemed to be colored as expected. Potentially the LSP had not finished parsing my code.

nolekev1214 commented 1 year ago

I appear to have gotten my explanation backwards. Colorization only breaks after the LSP has fully analyzed the code: image

Navigation works fine, its just colorization that is not working properly.

nolekev1214 commented 1 year ago

Turns out the colorizer is just completely broken on my Visual Studio 2022.

parthopdas commented 1 year ago

hmm...

would you mind replacing the rust-analyzer.exe with the latest version from rust-lang/rust-analyzer project and checking if that is still the case?

if so, i'll push out an update by tonight.

parthopdas commented 7 months ago

r-a has been update since. please reactive as necessary.