ICompletionProvider Interface
Provides the base requirements for an object that can handle requests for display of an IntelliPrompt completion list.
public interface ICompletionProvider : IOrderable, IKeyedObject
Remarks
Objects implementing this provider interface can be registered as a service with an ISyntaxLanguage using the RegisterService(object, object) method. Any object implementing this interface will be called as needed by the language in priority order (based on IOrderable settings).
Methods
RequestSession(IEditorView, bool)
Requests that an ICompletionSession be opened for the specified IEditorView.
bool RequestSession(IEditorView view, bool canCommitWithoutPopup)
Parameter | Type | Description |
---|---|---|
view | IEditorView | The IEditorView that will host the session. |
canCommitWithoutPopup | bool | Whether the session can immediately commit if a single match is made when the session is opened, commonly known as "complete word" functionality. |
Returns
- bool:
true
if a session was opened; otherwise,false
.