Omnisharp-vscode: Code hinting messed up, references missing since last C# extension update.

Created on 14 Jul 2016  路  7Comments  路  Source: OmniSharp/omnisharp-vscode

Environment data

dotnet --info output:
VS Code version: 1.3.1
C# Extension version: 1.2

Steps to reproduce

I updated my C# extension

Expected behavior

Work as normal.

Actual behavior

All my code doesn't seem to correctly code hint anymore -- references are not coming up and if I write jibberish, it doesn't mark it as an error.

Most helpful comment

In my case, user error. I have a nested solution with src and test folders and didn't realize I had to set the containing folder in VSCode as the project root (on the status bar). That's surprisingly unintuitive for somebody new to the IDE. I thought it would pick up the settings from the global.json on it's own.

All 7 comments

Seems that this was related to me working with Unity -- i reverted back to the LEgacy C# Support extension and things seem to be back to normal.

@SommTallGy: What sort of project is this? Unity? Mono? .NET Core?

I'm having the same issue with .NET Core Project, I get a lot of errors similar to this:

The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?) [netcoreapp1.0]

I'm running VS Code version: 1.3.1 with C# Extension version: 1.2.2

Same issue, working with VSCode 1.3.1 on Ubuntu 16.04 and seems like omnisharp is only "half-working". Not getting any intellisense, some code is highlighted property, some is not etc... this is a new .Net core web api project (via yeoman). I can type in complete gibberish and get no warning from the IDE.

In my case, user error. I have a nested solution with src and test folders and didn't realize I had to set the containing folder in VSCode as the project root (on the status bar). That's surprisingly unintuitive for somebody new to the IDE. I thought it would pick up the settings from the global.json on it's own.

From what I can tell, it sounds like this issue is dead. Let me know if there are further problems that I'm missing here.

Was this page helpful?
0 / 5 - 0 ratings