mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Add warning for unused imports
This commit is contained in:
parent
729939ad93
commit
6a078ee075
13 changed files with 53 additions and 5 deletions
|
@ -475,6 +475,9 @@ class LanguageServer:
|
|||
if isinstance(err, DeprecationWarning):
|
||||
result["tags"] = [DiagnosticTag.Deprecated]
|
||||
|
||||
if isinstance(err, UnusedWarning):
|
||||
result["tags"] = [DiagnosticTag.Unnecessary]
|
||||
|
||||
if len(err.references) > 0:
|
||||
result["relatedInformation"] = [
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue