Completions
Completions allow a client to ask an LSP server to complete a given fragment of text.
Default Implementation in AnyText
By default, AnyText creates completions for literal rules (to complete the literal) and for reference resolve rules (to suggest possible references).
Customizations
The completion are handled by the method SuggestCompletions of the class Rule. In case of a reference resolve rule, the calculation of suggestions can be customized by overriding the methods GetReferenceString (to adjust how the referenced elements appear in text), CreateCompletionEntry (to adjust how the completion entry is constructed altogether) or GetCandidates (to modify the calculation of candidates for references). By default, the calculation of candidates is delegated to the parse context where it also can be customized.