aboutsummaryrefslogtreecommitdiff
path: root/src/server
diff options
context:
space:
mode:
authorDaniel Gavin <danielgavin5@hotmail.com>2022-06-12 23:59:29 +0200
committerDaniel Gavin <danielgavin5@hotmail.com>2022-06-12 23:59:29 +0200
commitca3569c57c838be037fa4fcc71bdcabb6e7d0c93 (patch)
tree2d9cb8e749eff21b43dc45479b44922a03250a11 /src/server
parent56c9ed263cd7a9ff638987f3eaa7619642b22b87 (diff)
Fix union error with pointers
Diffstat (limited to 'src/server')
-rw-r--r--src/server/completion.odin4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/completion.odin b/src/server/completion.odin
index c8d9d11..ed5ee84 100644
--- a/src/server/completion.odin
+++ b/src/server/completion.odin
@@ -352,9 +352,9 @@ get_selector_completion :: proc(ast_context: ^AstContext, position_context: ^Doc
}
if symbol.pkg == ast_context.document_package || base == "runtime" || base == "$builtin" {
- item.label = fmt.aprintf("(%v%v)", common.repeat("^", symbol.pointers, context.temp_allocator), common.node_to_string(type))
+ item.label = fmt.aprintf("(%v%v)", common.repeat("^", symbol.pointers, context.temp_allocator), common.node_to_string(type, true))
} else {
- item.label = fmt.aprintf("(%v%v.%v)", common.repeat("^", symbol.pointers, context.temp_allocator), path.base(symbol.pkg, false, context.temp_allocator), common.node_to_string(type))
+ item.label = fmt.aprintf("(%v%v.%v)", common.repeat("^", symbol.pointers, context.temp_allocator), path.base(symbol.pkg, false, context.temp_allocator), common.node_to_string(type, true))
}
append(&items, item)