mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
lsp: Mark deprecation warnings
Some editors use different styling (e.g. strikethrough) for deprecation warnings.
This commit is contained in:
parent
94db929f74
commit
950b141d26
8 changed files with 23 additions and 5 deletions
|
@ -391,6 +391,9 @@ class LanguageServer:
|
|||
else DiagnosticSeverity.Error,
|
||||
}
|
||||
|
||||
if isinstance(err, DeprecationWarning):
|
||||
result["tags"] = [DiagnosticTag.Deprecated]
|
||||
|
||||
if len(err.references) > 0:
|
||||
result["relatedInformation"] = [
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue