dotnet / dotnet/vscode-csharp

Issue: 💡 Feature request ->Omnisharp does not recognize "asp-for" tag error

Open
#5,336 0 comments 0 reactions 0 assignees View on GitHub
OmniSharp Razor
Dominant language
TypeScript
Stars
3.1k
Forks
737
Avg merge
17h 56m
Merged PRs (30d)
21

Description

## Is your feature request related to a problem? Please describe.

Hello!! I am programming in a .cshtml view and the IntelliCode does not recognize the asp-for tag.

This is in Visual Studio 2022:
![image](https://user-images.githubusercontent.com/53313625/183262400-3b87cef6-ce99-4692-8ee9-5d06a0895679.png)

But in VSCode:
![image](https://user-images.githubusercontent.com/53313625/183262435-d584038d-fb69-4a97-bceb-bd02853214b9.png)

I know what the error is because it is "Client_Id" with capital letters. But the problem is that the OmniSharp in VSCode does not recognize the error. When I put the mouse over it does not make me the reference to the error as it is Visual Studio.

This reference works in Visual Studio:
![image](https://user-images.githubusercontent.com/53313625/183263499-26260be3-0f40-4415-8a9d-7cdf4a4ad1a5.png)

![image](https://user-images.githubusercontent.com/53313625/183263518-19cc87af-b004-4a2d-b53b-d73336b0128b.png)

The error does not appear in the "errors" console either.

## Describe the solution you would like

It's frustrating when it doesn't recognize an attribute, variable, etc

## Applicable Scenarios

That the description appears when hovering, and that it recognizes the variable, this visual studio does it

## Describe alternatives you've considered

I use Visual Studio and not VSCode

## Additional context

I posted this same problem in this [Thread ](https://github.com/MicrosoftDocs/intellicode/issues/398) but I was referred here

**Product and Version** [VS/VSCode]: 1.70 (user setup)
**OS Version** [macOS/Windows]: Windows_NT x 64 10.0.19044
**IntelliCode Extension Version**: 1.2.22
**Target Platform or Language** [e.g. Node.js]: C# ASP .NET 6 Razor

Thanks and Regards!!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.