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

@ -128,6 +128,10 @@ class CompileWarning(CompileError):
color = Colors.YELLOW
class DeprecatedWarning(CompileWarning):
pass
class UpgradeWarning(CompileWarning):
category = "upgrade"
color = Colors.PURPLE