Open HughGrovesArup opened 4 years ago
Same here. I get plenty of problems reported in autogenerated files in obj
folder.
cc @rchande @DustinCampbell
{
"fileOptions": {
"systemExcludeSearchPatterns": [
"**/node_modules/**/*",
"**/obj/**/*",
"**/bin/**/*"
],
"userExcludeSearchPatterns": [
"**/node_modules/**/*",
"**/obj/**/*",
"**/bin/**/*"]
}
}
both in user home folder or the workspace - no effect
The exclude patterns won't help because they only apply to solution/project discovery not to individual .cs files.
@filipw any ideas how to stop getting code issues in autogenerated files that are clearly marked?
This issue doesn't exist in ms-vscode.csharp@1.20.0
therefore it must be a regression.
Certainly related: #3249 and #3082.
Issue Description
I have a solution with two class libraries and one test (MSTest) library. After publishing I have files in the obj folder that trigger a series of warnings. I have tried to exclude obj and bin with my omnisharp.json file but this does not help.
Omnisharp.json contents
Steps to Reproduce
Create a solution with a class library and msbuild test project and publish.
Expected Behavior
Should not show any warnings (dotnet build, publish, test all work).
Actual Behavior
Logs
OmniSharp log
C# log
Environment information
VSCode version: 1.37.0 C# Extension: 1.21.0
Dotnet Information
.NET Core SDK (reflecting any global.json): Version: 2.2.102 Commit: 96ff75a873 Runtime Environment: OS Name: Windows OS Version: 10.0.17134 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\2.2.102\ Host (useful for support): Version: 2.2.1 Commit: 878dd11e62 .NET Core SDKs installed: 1.1.11 [C:\Program Files\dotnet\sdk] 2.2.102 [C:\Program Files\dotnet\sdk] .NET Core runtimes installed: Microsoft.AspNetCore.All 2.2.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.App 2.2.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 1.0.13 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 1.1.10 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.2.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] To install additional .NET Core runtimes or SDKs: https://aka.ms/dotnet-downloadVisual Studio Code Extensions
|Extension|Author|Version| |---|---|---| |csharp|ms-vscode|1.21.0| |designcheck2|designcheck|0.0.1| |git-graph|mhutchie|1.12.1| |gitlens|eamodio|9.9.3| |prettify-json|mohsen1|0.0.3| |python|ms-python|2019.8.29288| |rainbow-csv|mechatroner|1.2.0|;d