lsp: Mark deprecation warnings

Some editors use different styling (e.g. strikethrough) for deprecation
warnings.
This commit is contained in:
James Westman 2023-07-23 18:04:10 -05:00
parent 94db929f74
commit 950b141d26
8 changed files with 23 additions and 5 deletions

View file

@ -99,7 +99,7 @@ class Property(AstNode):
hints = []
if self.gir_property.deprecated_doc:
hints.append(self.gir_property.deprecated_doc)
raise CompileWarning(
raise DeprecatedWarning(
f"{self.gir_property.signature} is deprecated",
hints=hints,
)