Languages can choose to support IntelliPrompt completion lists and respond to Ctrl+Space.
Basic Concepts
The ICompletion
SyntaxEditor is wired up to automatically call this method if a completion provider is registered as a service on the current language when Ctrl+Space is typed by the end user.
Request
Implementors of the method should use code to examine the context of the caret in the view. This may involve token scanning and/or AST examination if available. Based on the context (in a method declaration, in a type declaration, in a documentation comment, etc.), a completion session should be opened if appropriate.
The CompletionProviderBase Base Class
The easiest way to implement an ICompletion
Registering with a Language
Any object that implements ICompletion
This code registers a completion provider in the completionProvider
variable with the syntax language that is already declared in the language
variable:
It is a common practice for a language itself to implement the ICompletion
Ordering Providers
The ICompletion