Skip to content

Commit

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

pub struct CodeDescription {
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 +27,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 12c73c2

Please sign in to comment.