Skip to content

Commit

Permalink
Fix issue with fake methods not using the aliased package name
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielGavin committed Dec 28, 2023
1 parent adb79e7 commit 42284ca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/server/methods.odin
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 42284ca

Please sign in to comment.