Skip to content

Commit

Permalink
fix: incorrect initialization
Browse files Browse the repository at this point in the history
Fixed incorrect deserialization of some field according to the latest
Language Server Protocol specification.
  • Loading branch information
onion108 committed Dec 13, 2024
1 parent bc2aa29 commit 98700e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lsp/completion.v
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pub mut:
pub struct CompletionItemSettings {
snippet_support bool @[json: snippetSupport]
commit_characters_support bool @[json: commitCharactersSupport]
documentation_format bool @[json: documentationFormat]
documentation_format []string @[json: documentationFormat]
preselect_support bool @[json: preselectSupport]
deprecated_support bool @[json: deprecatedSupport]
tag_support ValueSet @[json: tag_support]
Expand Down
2 changes: 1 addition & 1 deletion src/lsp/initialize.v
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pub mut:
client_info ClientInfo @[json: clientInfo]
root_uri DocumentUri @[json: rootUri]
root_path DocumentUri @[json: rootPath]
initialization_options string @[json: initializationOptions]
initialization_options string @[json: initializationOptions; skip]
capabilities ClientCapabilities
trace string
workspace_folders []WorkspaceFolder @[skip]
Expand Down

0 comments on commit 98700e2

Please sign in to comment.