Vscode: Intellisense

Created on 17 Dec 2019  ·  14Comments  ·  Source: microsoft/vscode

Intellisense isn't working. Latest issues are with .netcore 3.1 and omnisharp.

I have .netcore 3.1 SDK installed.

C:\Program Files\dotnet\sdk\2.2.300\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets(137,5): Error: The current .NET SDK does not support targeting .NET Core 3.1. Either target .NET Core 2.2 or lower, or use a version of the .NET SDK that supports .NET Core 3.1.

*duplicate

Most helpful comment

To fix I had to do the following;

omnisharp.json

{
  "MsBuild": {
    "UseLegacySdkResolver": true
  }
}

global.json

{
  "sdk": {
    "version": "3.1.100"
  }
}

All 14 comments

It's also happened to me, in version 1.41.0

微信截图_20191217150704

It disappeared after open vscode for a while.

Then I reinstalled the lower version(1.35.1) of vscode, it works !

微信截图_20191217153155

I was so confused about this, and didn't expect it to be a bug!😂

Not working in React as well...
image
Nothing happens when you press CTRL+Space. Same happens for built-in javascript objects like Number and Arrays...

Please file the issue against the OmniSharp extension here: https://github.com/OmniSharp/omnisharp-vscode

@dbaeumer I don't think this is related to Omnisharp only.
There is some people talking about this problem in React Native too. (As #87151 and @aplavsa stated).

Isn't this passive to reopening?

@Ronkiro thanks for pointing this out. Reopening...

Seems related to #87034

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines.

Happy Coding!

This is both (guess work based on information fragments) - it seems that are issues with OmniSharp and/or TypeScript IntelliSense. Hence the dupe of #87034

To fix I had to do the following;

omnisharp.json

{
  "MsBuild": {
    "UseLegacySdkResolver": true
  }
}

global.json

{
  "sdk": {
    "version": "3.1.100"
  }
}

@Fosol Where should I put the files?

I put them in the root of my solution.

@Fosol Where should I put the files?

I have the same problem, did the solution of dear @Fosol worked for you ?
It did not solved my problem.

@Fosol 's solution worked for me. Thanx!
@zandiarash

Was this page helpful?
0 / 5 - 0 ratings

Related issues

philipgiuliani picture philipgiuliani  ·  3Comments

omidgolparvar picture omidgolparvar  ·  3Comments

sijad picture sijad  ·  3Comments

trstringer picture trstringer  ·  3Comments

biij5698 picture biij5698  ·  3Comments