Construct a new completion handler for a widget.
The completer widget managed by the handler.
The data connector used to populate completion requests.
The only method of this connector that will ever be called is fetch
, so
it is acceptable for the other methods to be simple functions that return
rejected promises.
The data connector used to populate completion requests.
The only method of this connector that will ever be called is fetch
, so
it is acceptable for the other methods to be simple functions that return
rejected promises.
The editor used by the completion handler.
The editor used by the completion handler.
Get whether the completion handler is disposed.
Make a completion request.
Receive a completion reply from the connector.
The state of the editor when completion request was made.
The API response returned for a completion request.
Dispose of the resources used by the handler.
Get the state of the text editor at the given position.
Invoke the handler and launch a completer.
Handle a completion selected signal from the completion widget.
Handle invoke-request
messages.
Handle selection changed signal from an editor.
If a sub-class reimplements this method, then that class must either call its super method or it must take responsibility for adding and removing the completer completable class to the editor host node.
Despite the fact that the editor widget adds a class whenever there is a primary selection, this method checks independently for two reasons:
jp-mod-has-primary-selection
to filter out any editors that have
a selection means the semantic meaning of jp-mod-completer-enabled
is obscured because there may be cases where the enabled class is added
even though the completer is not available.Handle a text changed signal from an editor.
Handle a visibility change signal from a completer widget.
Process a message sent to the completion handler.
Generated using TypeDoc
A completion handler for editors. A namespace for cell completion handler statics.