kitamstudios/rust-analyzer.vs

Incorrect colorization of methods

Closed this issue · 6 comments

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().

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

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

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.

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

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.

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