mnespor / vscode-color-identifiers-mode

GNU General Public License v3.0
14 stars 3 forks source link

Not working with C# #8

Closed Jstanesa closed 2 years ago

Jstanesa commented 2 years ago

Variable highlighting is not working for me with C#. All the variables and parameters are white and uncolored. Like the issue in https://github.com/mnespor/vscode-color-identifiers-mode/issues/7#issue-1266681820 , the extension works for me with Python code. I've spent some time trying to change settings, but nothing seems to work.

Jstanesa commented 2 years ago

This issue was caused by Omnisharp not loading correctly. The issue was resolved by installing MSBuild Tools from the Build Tools for Visual Studio 2022 at https://visualstudio.microsoft.com/downloads/?q=build+tools . I also needed to add "field" and "local" to colorIdentifiersMode.tokenKinds in settings.json to color most variables.