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:
+2
-1
@@ -16,5 +16,6 @@ public enum BaselineCompletionItemKind {
|
||||
ENUM,
|
||||
ERROR,
|
||||
GLOBAL,
|
||||
CONST
|
||||
CONST,
|
||||
MODULE
|
||||
}
|
||||
|
||||
+1
@@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
+1
@@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user