I\'m trying to find out why i\'m not getting any help by omisharp in my visual studio code.
I\'ve tried reinstalling both application and my extensions and i\'m sti
I spent some time figuring this out. I tried uninstalling extensions, uninstalling vs code itself, removing all app data files etc. The only simple solution was to file\open folder and browse to one of the folders of code you were working with and from there recreate you work-space as before by adding additional folders if needed. Once I did this all intellisense and error detection came back including go to definition.
If it helps! In my case I mistakenly disabled the ERROR SQUIGGLES, while writing C++ code.
enable_squiggles
You can enable them by navigating to FILE > PREFERENCES > SETTINGS.
Type squiggles
(be accurate) and you will get that. Choose
'EnableIfIncludesResolve' or 'Enabled'.
And
Immediately after you have opened your application in VS Code, open the Output window (View > Output) and choose the OmniSharp Log in the Output window. That will provide more information about what is happening.
It often happens because sometimes user by mistake disables the setting required for producing errors or problems. Just go to code > preferences > settings > Workspace settings and enable the required settings. It worked well for me, hope it does for you too.
I solved my same problem clicking in the bottom right corner of VSCode, line sequence CRLF, changed to LF and then change again to CRLF.
After this, my problem was solved, but i need to make this every time a restart the computer.
OmniSharp works on the solution file. If the project is not added to a solution, then you will not see the errors.
Add project to the solution:
$ dotnet sln add SampleProject/SampleProject.csproj
Restart OmniSharp:
Press CTRL + SHIFT + P and select
Omnisharp: Restart OmniSharp
.