feat: publish errors as lsp diagnostic messages
This commit is contained in:
@@ -77,6 +77,7 @@ pub enum ErrorKind {
|
||||
#[error("unclosed {start}")]
|
||||
Unclosed {
|
||||
start: Pattern,
|
||||
#[label]
|
||||
before_span: Span,
|
||||
before: Option<Pattern>,
|
||||
},
|
||||
|
||||
@@ -55,7 +55,9 @@ pub enum Error {
|
||||
|
||||
#[error("duplicate type name {name}")]
|
||||
DuplicateTypeName {
|
||||
#[label]
|
||||
location: Span,
|
||||
#[label]
|
||||
previous_location: Span,
|
||||
name: String,
|
||||
},
|
||||
@@ -79,6 +81,7 @@ pub enum Error {
|
||||
|
||||
#[error("{name} has incorrect type arity expected {expected} but given {given}")]
|
||||
IncorrectTypeArity {
|
||||
#[label]
|
||||
location: Span,
|
||||
name: String,
|
||||
expected: usize,
|
||||
|
||||
Reference in New Issue
Block a user