diff --git a/src/server/methods.odin b/src/server/methods.odin index 4d1d3f29..df0d1cc3 100644 --- a/src/server/methods.odin +++ b/src/server/methods.odin @@ -109,7 +109,11 @@ append_method_completion :: proc( if symbol.pkg != ast_context.document_package { new_text = fmt.tprintf( "%v.%v($0)", - path.base(symbol.pkg, false, ast_context.allocator), + path.base( + get_symbol_pkg_name(ast_context, symbol), + false, + ast_context.allocator, + ), symbol.name, ) } else {