diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-10-07 16:05:43 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-10-07 16:05:43 -0400 |
| commit | 4b90e2887139f78e028095b90ed4124dfcadb22b (patch) | |
| tree | 79164c48d706865d5b934649dfc61bede3280161 /src/server/symbol.odin | |
| parent | bcc27081361a4f7099f4859ae18f7f7d64623eef (diff) | |
fix hover ranges to be at the cursor not at the symbol definition for certain cases
Diffstat (limited to 'src/server/symbol.odin')
| -rw-r--r-- | src/server/symbol.odin | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/symbol.odin b/src/server/symbol.odin index 42e5447..caec706 100644 --- a/src/server/symbol.odin +++ b/src/server/symbol.odin @@ -902,6 +902,7 @@ construct_enum_field_symbol :: proc(symbol: ^Symbol, value: SymbolEnumValue, ind symbol.doc = get_doc(nil, value.docs[index], context.temp_allocator) symbol.comment = get_comment(value.comments[index]) symbol.signature = get_enum_field_signature(value, index) + symbol.range = value.ranges[index] } // Adds name and type information to the symbol when it's for an identifier |