diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-06-05 21:03:04 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-06-05 21:03:04 -0400 |
| commit | e81770b1ededb36770fd2393feb2d4450df445ef (patch) | |
| tree | e268b68ca29d65170e90781d39f745f1411e7887 /src/server/hover.odin | |
| parent | 7ee64314fdd05984c65b1aa6df7ef3cd2dd435cd (diff) | |
Update implicit expression hover text to include package
Diffstat (limited to 'src/server/hover.odin')
| -rw-r--r-- | src/server/hover.odin | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/server/hover.odin b/src/server/hover.odin index d378696..cc3c5b2 100644 --- a/src/server/hover.odin +++ b/src/server/hover.odin @@ -241,8 +241,7 @@ get_hover_information :: proc(document: ^Document, position: common.Position) -> case SymbolEnumValue: for name, i in v.names { if strings.compare(name, implicit_selector.field.name) == 0 { - symbol.pkg = symbol.name - symbol.name = name + symbol.signature = fmt.tprintf(".%s", name) hover.contents = write_hover_content(&ast_context, symbol) return hover, true, true } @@ -251,8 +250,7 @@ get_hover_information :: proc(document: ^Document, position: common.Position) -> if enum_value, ok := unwrap_super_enum(&ast_context, v); ok { for name, i in enum_value.names { if strings.compare(name, implicit_selector.field.name) == 0 { - symbol.pkg = symbol.name - symbol.name = name + symbol.signature = fmt.tprintf(".%s", name) hover.contents = write_hover_content(&ast_context, symbol) return hover, true, true } |