Open klausenbusk opened 5 years ago
@klausenbusk Can you try putting the caret on the line with the error and pressing "ctrl-."? I think this is a presentation issue (we show up in the lightbulb but not the error tooltip)
@klausenbusk Can you try putting the caret on the line with the error and pressing "ctrl-."? I think this is a presentation issue (we show up in the lightbulb but not the error tooltip)
It works, thanks! It isn't very intuitive though.
Adding some screenshots for clarity. The tooltip shows no quick fix:
But there is one with the lightbulb:
Issue Description
According to: https://github.com/OmniSharp/omnisharp-vscode/issues/1117 there should be a "Add using" quick fix.
Steps to Reproduce
Choose the
Program.cs
file and writeSocket socket;
in theMain
method.Expected Behavior
A quick fix should be available to add the missing
using System.Net.Sockets
directive.Actual Behavior
Logs
OmniSharp log
C# log
Environment information
VSCode version: 1.37.1 C# Extension: 1.21.1
Mono Information
OmniSharp using built-in monoDotnet Information
.NET Core SDK (reflecting any global.json): Version: 2.2.108 Commit: 33ed5b90ce Runtime Environment: OS Name: arch OS Version: OS Platform: Linux RID: arch-x64 Base Path: /opt/dotnet/sdk/2.2.108/ Host (useful for support): Version: 2.2.6 Commit: 7dac9b1b51 .NET Core SDKs installed: 2.2.108 [/opt/dotnet/sdk] .NET Core runtimes installed: Microsoft.NETCore.App 2.2.6 [/opt/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.1|;