From 12c73c2d5bd34f212b065f878b51cf5b9828a7f0 Mon Sep 17 00:00:00 2001 From: lv <132778382+lv37@users.noreply.github.com> Date: Tue, 3 Sep 2024 16:21:20 +0100 Subject: [PATCH] Fix `code_description` --- src/lsp/diagnostics.v | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lsp/diagnostics.v b/src/lsp/diagnostics.v index 6ad2b09d..6bce8807 100644 --- a/src/lsp/diagnostics.v +++ b/src/lsp/diagnostics.v @@ -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. @@ -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