lsp: Report warnings correctly

Previously all diagnostics had the "error" severity, now warnings are
correctly reported as such
This commit is contained in:
James Westman 2022-03-15 23:06:45 -05:00
parent 93f2a27e35
commit 6576e02837
No known key found for this signature in database
GPG key ID: CE2DBA0ADB654EA6
2 changed files with 14 additions and 1 deletions

View file

@ -103,6 +103,14 @@ class SemanticTokenType(enum.IntEnum):
EnumMember = 0
class DiagnosticSeverity(enum.IntEnum):
Error = 1
Warning = 2
Information = 3
Hint = 4
@dataclass
class SemanticToken:
start: int