Langium - v4.0.0
    Preparing search index...

    Class DefaultCompletionProvider

    Language-specific service for handling completion requests.

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    astReflection: AstReflection
    completionOptions?: CompletionProviderOptions

    Contains the completion options for this completion provider.

    If multiple languages return different options, they are merged before being sent to the language client.

    completionParser: LangiumCompletionParser
    documentationProvider: DocumentationProvider
    fuzzyMatcher: FuzzyMatcher
    grammar: Grammar
    grammarConfig: GrammarConfig
    lexer: Lexer
    nameProvider: NameProvider
    nodeKindProvider: NodeKindProvider
    scopeProvider: ScopeProvider

    Methods

    • Indicates whether the completion should continue to process the next completion context.

      The default implementation continues the completion only if there are currently no proposed completion items.

      Parameters

      • items: CompletionItem[]

      Returns boolean

    • The completion algorithm could yield the same reference/keyword multiple times.

      This methods deduplicates these items afterwards before returning to the client. Unique items are identified as a combination of kind, label and detail.

      Parameters

      • items: CompletionItem[]

      Returns CompletionItem[]