Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Conversation

@cgranade
Copy link
Contributor

@cgranade cgranade commented Mar 5, 2021

This PR adds a new method overload to QSharpLogger that allows MapLevel to accept either diagnostic severities or nullable diagnostic severities. This is required due to changes in the language server protocol client API, as in the new version of that API, diagnostic severities are allowed to be absent (represented by null). As a result, this change is required by microsoft/qsharp-compiler#886, and in turn by microsoft/qsharp-compiler#885.

@cgranade cgranade requested a review from anjbur March 5, 2021 16:01
anjbur
anjbur previously approved these changes Mar 5, 2021
@cgranade cgranade merged commit 9310eaa into main Mar 5, 2021
@cgranade cgranade deleted the cgranade/fix-885 branch March 5, 2021 23:26
ricardo-espinoza pushed a commit that referenced this pull request Mar 12, 2021
* Handle nullability of diagnostic severities.

* Ensure that LSP.Diagnostic.Range is not null.

* Revert "Ensure that LSP.Diagnostic.Range is not null."

This reverts commit dbf05f3.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants