From ddd6485f6ea68e445ee893721b2696aa2ab91bc4 Mon Sep 17 00:00:00 2001 From: Brad Lewis <22850972+BradLewis@users.noreply.github.com> Date: Sat, 19 Jul 2025 19:36:42 -0400 Subject: Add proc directives to hover information --- src/server/documentation.odin | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/server/documentation.odin') diff --git a/src/server/documentation.odin b/src/server/documentation.odin index 34a6752..1698d61 100644 --- a/src/server/documentation.odin +++ b/src/server/documentation.odin @@ -497,6 +497,21 @@ write_procedure_symbol_signature :: proc(sb: ^strings.Builder, value: SymbolProc } else if value.diverging { strings.write_string(sb, " -> !") } + for tag in value.tags { + s := "" + switch tag { + case .Optional_Ok: + s = "#optional_ok" + case .Optional_Allocator_Error: + s = "#optional_allocator_error" + case .Bounds_Check: + s = "#bounds_check" + case .No_Bounds_Check: + s = "#no_bounds_check" + } + + fmt.sbprintf(sb, " %s", s) + } } write_struct_hover :: proc(ast_context: ^AstContext, sb: ^strings.Builder, v: SymbolStructValue) { -- cgit v1.2.3