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
|
@ -29,7 +29,12 @@ from gi.repository import Gtk
|
|||
|
||||
from blueprintcompiler import decompiler, parser, tokenizer, utils
|
||||
from blueprintcompiler.completions import complete
|
||||
from blueprintcompiler.errors import CompileError, MultipleErrors, PrintableError
|
||||
from blueprintcompiler.errors import (
|
||||
CompileError,
|
||||
DeprecatedWarning,
|
||||
MultipleErrors,
|
||||
PrintableError,
|
||||
)
|
||||
from blueprintcompiler.outputs.xml import XmlOutput
|
||||
from blueprintcompiler.tokenizer import Token, TokenType, tokenize
|
||||
|
||||
|
@ -59,7 +64,7 @@ class TestSamples(unittest.TestCase):
|
|||
warnings = [
|
||||
warning
|
||||
for warning in warnings
|
||||
if "is deprecated" not in warning.message
|
||||
if not isinstance(warning, DeprecatedWarning)
|
||||
]
|
||||
|
||||
if errors:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue