JavaScriptCompletionProvider Class
Provides IntelliPrompt completion data for the JavaScript language.
public class JavaScriptCompletionProvider : CompletionProviderBase, ICompletionProvider, IOrderable, IKeyedObject
- Inheritance:
- object CompletionProviderBase object
- Implements:
- ICompletionProvider IOrderable IKeyedObject
Constructors
JavaScriptCompletionProvider()
Initializes a new instance of the JavaScriptCompletionProvider class.
public JavaScriptCompletionProvider()
Methods
OnSessionOpening(ICompletionSession)
Allows an inheritor to modify, filter and sort automatically-generated items before the specified ICompletionSession is opened and displayed to the end user. The session may also be cancelled.
protected virtual bool OnSessionOpening(ICompletionSession session)
| Parameter | Type | Description |
|---|---|---|
| session | ICompletionSession | The ICompletionSession about to be opened. |
Returns
- bool:
trueif the session is allowed to open; otherwise,false.
Remarks
The default implementation of this method sorts the items in the session.
RequestSession(IEditorView, bool)
Requests that an ICompletionSession be opened for the specified IEditorView.
public override 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:
trueif a session was opened; otherwise,false.