Skip to content

Commit

Permalink
analyzer: Fix code_description (fixes zed-v) (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
lv37 authored Sep 5, 2024
1 parent a18d695 commit d63bc6c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/lsp/diagnostics.v
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ pub enum DiagnosticTag {
deprecated
}

pub struct CodeDescription {
pub mut:
href string = 'https://github.com/vlang/v/blob/master/doc/docs.md'
}

pub struct Diagnostic {
pub mut:
// The range at which the message applies.
Expand All @@ -23,7 +28,7 @@ pub mut:
// The diagnostic's code, which might appear in the user interface.
code string
// An optional property to describe the error code.
code_description string @[json: 'codeDescription']
code_description CodeDescription @[json: 'codeDescription']
// A human-readable string describing the source of this
// diagnostic, e.g. 'typescript' or 'super lint'.
source string
Expand Down

0 comments on commit d63bc6c

Please sign in to comment.