diff options
| author | Daniel Gavin <danielgavin5@hotmail.com> | 2022-06-19 15:15:48 +0200 |
|---|---|---|
| committer | Daniel Gavin <danielgavin5@hotmail.com> | 2022-06-19 15:15:48 +0200 |
| commit | 772d60c65246d252bda676aa09c371ad9985e2b7 (patch) | |
| tree | 03466d85173c25e0ed43e95f3cad5a9e35b71575 /src/server/hover.odin | |
| parent | 09fdb88a25c3cc350bc1256b2f48c5d5a297807e (diff) | |
move document struct back to server
Diffstat (limited to 'src/server/hover.odin')
| -rw-r--r-- | src/server/hover.odin | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/hover.odin b/src/server/hover.odin index 56e8bb0..98eaa50 100644 --- a/src/server/hover.odin +++ b/src/server/hover.odin @@ -35,7 +35,7 @@ write_hover_content :: proc(ast_context: ^AstContext, symbol: Symbol) -> MarkupC if cat != "" { content.kind = "markdown" - content.value = fmt.tprintf("```odin\n %v\n```\n%v", cat, symbol.doc) + content.value = fmt.tprintf("```odin\n%v\n```\n%v", cat, symbol.doc) } else { content.kind = "plaintext" } @@ -44,11 +44,11 @@ write_hover_content :: proc(ast_context: ^AstContext, symbol: Symbol) -> MarkupC } builtin_identifier_hover: map[string]string = { - "context" = fmt.aprintf("```odin\n %v\n```\n%v", "runtime.context: Context", "This context variable is local to each scope and is implicitly passed by pointer to any procedure call in that scope (if the procedure has the Odin calling convention)."), + "context" = fmt.aprintf("```odin\n%v\n```\n%v", "runtime.context: Context", "This context variable is local to each scope and is implicitly passed by pointer to any procedure call in that scope (if the procedure has the Odin calling convention)."), } -get_hover_information :: proc(document: ^common.Document, position: common.Position) -> (Hover, bool, bool) { +get_hover_information :: proc(document: ^Document, position: common.Position) -> (Hover, bool, bool) { hover := Hover { contents = { kind = "plaintext", |