luvjungle
luvjungle

Reputation: 1066

How do I change the language of C# error hints?

Since omnisharp 1.16 update (don't know if it is the point) I have error hints in my system's language (Russian). But my VSCode locale is English. Where I can set error hints' language back to english? I don't have any localization language packs for .Net in the system.

Errors I am talking about picture

Upvotes: 8

Views: 2707

Answers (1)

luvjungle
luvjungle

Reputation: 1066

This is the workaround to set error hint back to English. As described here: https://github.com/OmniSharp/omnisharp-vscode/issues/2513

Open your "OmniSharp" log and find the path to OmniSharp from the beginning of the log, eg:

OmniSharp server started.

Path: C:\Users\rchande.vscode-insiders\extensions\ms-vscode.csharp-1.16.1.omnisharp\1.32.5\OmniSharp.exe

Navigate to the directory eg

C:\Users\rchande.vscode-insiders\extensions\ms-vscode.csharp-1.16.1.omnisharp\1.32.5,

and enter the subfolder that corresponds to your system language. In my case, the folder would be "ru" because the system language is Russian. Remove all the DLLs whose name starts with Microsoft.CodeAnalysis. Or rename the folder.

Upvotes: 14

Related Questions