diff options
| author | DanielGavin <danielgavin5@hotmail.com> | 2023-12-28 16:10:04 +0100 |
|---|---|---|
| committer | DanielGavin <danielgavin5@hotmail.com> | 2023-12-28 16:10:04 +0100 |
| commit | 42284ca9e24f0d034dcde10deb5c0ddc79f1894e (patch) | |
| tree | 85261477b4985343070ace552f3ef901b1e01daf /src/server | |
| parent | adb79e722e94f3c64e69c6ddcdb0293b394bd041 (diff) | |
Fix issue with fake methods not using the aliased package name
Diffstat (limited to 'src/server')
| -rw-r--r-- | src/server/methods.odin | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/server/methods.odin b/src/server/methods.odin index 4d1d3f2..df0d1cc 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 { |