implements PLN-0137 (6/7) module-ref-completion

Completion inside a ModuleRef lists project and stdlib modules the
current resolver can already name. Completion after a dot stays the
existing member list. Items remain eager, resolveProvider stays false,
and there is no snippet or ranking score.
This commit is contained in:
2026-09-22 09:13:40 +01:00
parent 202c785f94
commit e456bb8d7a
10 changed files with 286 additions and 4 deletions
@@ -16,5 +16,6 @@ public enum BaselineCompletionItemKind {
ENUM,
ERROR,
GLOBAL,
CONST
CONST,
MODULE
}
@@ -884,6 +884,7 @@ public final class CompilerLanguageServiceBridge implements LanguageServiceBridg
case ERROR -> BaselineCompletionItemKind.ERROR;
case GLOBAL -> BaselineCompletionItemKind.GLOBAL;
case CONST -> BaselineCompletionItemKind.CONST;
case MODULE -> BaselineCompletionItemKind.MODULE;
};
}
@@ -479,6 +479,7 @@ public final class Lsp4jProtocolMessageMapper implements ProtocolMessageMapper {
case ENUM -> CompletionItemKind.Enum;
case ERROR -> CompletionItemKind.EnumMember;
case GLOBAL, CONST -> CompletionItemKind.Constant;
case MODULE -> CompletionItemKind.Module;
};
}