vscode-csharp
vscode-csharp copied to clipboard
when creating a new class warning about the class already exists in the namespace.
Whenever i tries to create a new C# class omnisharp gives warning and i need to to restart omnisharp.
The class doesn't exists in the namespace when i restart omnisharp using Ctrl + shift + p the warning is gone. system :Ubuntu 22.04

dotnet application is running using dotnet watch run
Omnisharp Log
Starting OmniSharp server at 20/1/2023, 6:52:22 pm
Target: /home/telora/Desktop/Asset/asset-backend
OmniSharp server started with .NET 6.0.111
.
Path: /home/telora/.vscode/extensions/ms-dotnettools.csharp-1.25.2-linux-x64/.omnisharp/1.39.2-net6.0/OmniSharp.dll
PID: 58790
[info]: OmniSharp.Stdio.Host
Starting OmniSharp on Unknown 0.0 (Unknown)
[info]: OmniSharp.Services.DotNetCliService
Checking the 'DOTNET_ROOT' environment variable to find a .NET SDK
[info]: OmniSharp.Services.DotNetCliService
DotNetPath set to /usr/lib/dotnet/dotnet
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
Located 1 MSBuild instance(s)
1: .NET Core SDK 6.0.111 17.0.1 - "/usr/lib/dotnet/sdk/6.0.111/"
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
Registered MSBuild instance: .NET Core SDK 6.0.111 17.0.1 - "/usr/lib/dotnet/sdk/6.0.111/"
[info]: OmniSharp.WorkspaceInitializer
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0
[info]: OmniSharp.Cake.CakeProjectSystem
Detecting Cake files in '/home/telora/Desktop/Asset/asset-backend'.
[info]: OmniSharp.Cake.CakeProjectSystem
Did not find any Cake files
[info]: OmniSharp.MSBuild.ProjectSystem
No solution files found in '/home/telora/Desktop/Asset/asset-backend'
[info]: OmniSharp.MSBuild.ProjectManager
Queue project update for '/home/telora/Desktop/Asset/asset-backend/Asset.csproj'
[info]: OmniSharp.Script.ScriptProjectSystem
Detecting CSX files in '/home/telora/Desktop/Asset/asset-backend'.
[info]: OmniSharp.Script.ScriptProjectSystem
Did not find any CSX files
[info]: OmniSharp.WorkspaceInitializer
Configuration finished.
[info]: OmniSharp.Stdio.Host
Omnisharp server running using Stdio at location '/home/telora/Desktop/Asset/asset-backend' on host 58436.
[info]: OmniSharp.MSBuild.ProjectManager
Loading project: /home/telora/Desktop/Asset/asset-backend/Asset.csproj
[info]: OmniSharp.MSBuild.ProjectManager
Successfully loaded project file '/home/telora/Desktop/Asset/asset-backend/Asset.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
Adding project '/home/telora/Desktop/Asset/asset-backend/Asset.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Update project: Asset
Received response for /v2/getcodeactions but could not find request.
Received response for /v2/getcodeactions but could not find request.
Received response for /v2/getcodeactions but could not find request.
Received response for /v2/getcodeactions but could not find request.
Received response for /completion/resolve but could not find request.