Open Asghwor opened 2 years ago
This is not a bug, but normal MSBuild behavior. According to your logs you have your current solution file under:
/home/my-name/path-to-project/docs/samples/CosmosGettingStarted.sln
with one project file
/home/my-name/path-to-project/docs/samples/CosmosGettingStartedTutorial/CosmosGettingStarted.csproj
if you now create files under
/home/my-name/path-to-project/src
they do not belong to any project. Also, even if they did, your currently loaded solution CosmosGettingStarted.sln
only contains a single project CosmosGettingStarted.csproj
so only code from that project would be active.
Make sure your new code belongs to a project and that that particular project is correctly added to your open solution. You can use the OmniSharp: Select project...
from the command palette to switch between projects.
Apparently there is a project inside src, which it uses when I open src directly.
However, when I try to run OmniSharp: Select project...
, it shows me the following message:
Extension 'ms-dotnettools.csharp' CANNOT use API proposal: quickPickSeparators. Its package.json#enabledApiProposals-property declares: [] but NOT quickPickSeparators. The missing proposal MUST be added and you must start in extension development mode or use the following command line switch: --enable-proposed-api ms-dotnettools.csharp
So I cannot change it.
Issue Description
When the source code is inside the src/ folder, and not directly in the root path, hovering class and interface names doesn't show any tooltips, and the peeking and ctrl+clicking functionality is missing. When opening the src folder directly it works, however.
Steps to Reproduce
Expected Behavior
Tooltips, peek and ctrl+clicking elements should work even if the source code is inside the src/ folder.
Actual Behavior
Tooltips, peek and ctrl+clicking elements don't work when the source code is inside the src/ folder.
Logs
OmniSharp log
C# log
Environment information
VSCode version: 1.63.2 C# Extension: 1.23.17
Mono Information
OmniSharp using built-in monoDotnet Information
.NET Core SDK (reflecting any global.json): Version: 3.1.416 Commit: 8d3765c609 Runtime Environment: OS Name: ubuntu OS Version: 18.04 OS Platform: Linux RID: ubuntu.18.04-x64 Base Path: /usr/share/dotnet/sdk/3.1.416/ Host (useful for support): Version: 3.1.22 Commit: 35fa579a30 .NET Core SDKs installed: 3.1.416 [/usr/share/dotnet/sdk] .NET Core runtimes installed: Microsoft.AspNetCore.App 3.1.22 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 3.1.22 [/usr/share/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-dotnettools|1.23.17|;