We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Continuation of ionide/ionide-vscode-fsharp#912
Ionide:
VS 2017:
open Microsoft.Extensions.Logging open System let provider = { new ILoggerProvider with member x.Dispose() = () member x.CreateLogger name = { new ILogger with member x.Log<'TState>(logLevel: LogLevel, eventId : EventId, state: 'TState, exception: exn, formatter: Func<'TState, exn, string>) = () member x.IsEnabled (logLevel:LogLevel ) = true member x.BeginScope<'TState> (State: 'TState) = { new IDisposable with member x.Dispose() = () } } }
Paste the above code into your project and install the Microsoft.Extensions.Logging NuGet package
Microsoft.Extensions.Logging
Only "exception" should be underlined and the error message should be:
"Internal error" is shown to the user
None. Notice that you used an keyword.
Provide any related information
The text was updated successfully, but these errors were encountered:
Thanks, agreed on what the error should be.
Hey @TIHan
Sorry, something went wrong.
This is niche enough that I'm going to close this - exception is rarely used and the awkward diagnostic hasn't been seen in other cases.
exception
No branches or pull requests
Continuation of ionide/ionide-vscode-fsharp#912
Ionide:
VS 2017:
Repro steps
Paste the above code into your project and install the
Microsoft.Extensions.Logging
NuGet packageExpected behavior
Only "exception" should be underlined and the error message should be:
Actual behavior
"Internal error" is shown to the user
Known workarounds
None. Notice that you used an keyword.
Related information
Provide any related information
The text was updated successfully, but these errors were encountered: