dotnet / razor

Compiler and tooling experience for Razor ASP.NET Core apps in Visual Studio, Visual Studio for Mac, and VS Code.
https://asp.net
MIT License
505 stars 196 forks source link

Component discovery on Opensuse Tumbleweed is inconsistent #10655

Open ryzngard opened 4 months ago

ryzngard commented 4 months ago

Copied from https://github.com/microsoft/vscode-dotnettools/issues/49#issuecomment-2239902160


Hi, for me the 'solution (if we can name that..) is to just add using to namespace. I don't know how does it work in more complex solutions - probably pain in the ... but it works for me.

Just add usings on the top of the file.

It looks like the _Imports.razor is not working as should be for IDE extension. (For build it's ok)

Attached screenshot before and after using.

What's more interesting after additional using i can remove it after build and IDE looks fixed for all other usings... really weird

image image

pebcakerror commented 1 month ago

is https://github.com/dotnet/vscode-csharp/issues/7625 related?

ryzngard commented 1 month ago

is dotnet/vscode-csharp#7625 related?

Probably not. This is specific to the OS. Other linux distros that we test with are not having this issue.