Skip to content

Commit

Permalink
Fix issue with warning on save.
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielGavin committed Jan 11, 2025
1 parent 584f01b commit 88a91d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/server/check.odin
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ check :: proc(paths: []string, uri: common.Uri, writer: ^Writer, config: ^common
&errors[error.pos.file],
Diagnostic {
code = "checker",
severity = .Error if error.type == "error" else .Warning,
severity = .Error,
range = {
start = {character = error.pos.column - 1, line = error.pos.line - 1},
end = {character = error.pos.end_column - 1, line = error.pos.line - 1},
Expand Down
2 changes: 1 addition & 1 deletion src/server/hover.odin
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ get_hover_information :: proc(document: ^Document, position: common.Position) ->
set_ast_package_set_scoped(&ast_context, selector.pkg)

if selector, ok = resolve_type_expression(&ast_context, v.return_types[0].type); !ok {
return {}, false, false
return {}, false, true
}
}

Expand Down

0 comments on commit 88a91d1

Please sign in to comment.