Client
Object Hierarchy:
Description:
public interface Client : Object
A client connected to a Language Server Protocol service
All known implementing classes:
Content:
Properties:
Methods:
- public virtual async void change_configuration (Variant settings) throws Error
Notify to he server any configuration change using
'workspace/didChangeConfiguration' id.
- public virtual async void change_watched_files (Container files) throws Error
- public virtual async void change_workspace_folders (Container added, Container removed) throws Error
- public virtual async Container? code_action (string uri, Range range, Container context) throws Error
- public virtual async Container? code_lens (string uri, Variant? work_done_token) throws Error
- public virtual async CodeLens? code_lens_resolve (string uri, CodeLens code_lens) throws Error
- public virtual async Container? color_presentation (string uri, Color color, Range range) throws Error
- public abstract async Object completion (string uri, string word, Position position, Variant? partial_result_token, Variant? work_done_token) throws Error
Execute a completion request on given document for a given context.
- public virtual async CompletionItem? completion_resolve (string uri, CompletionItem item) throws Error
- public virtual async Container? declaration (string uri, Position pos) throws Error
- public abstract async Container? definition (string uri, Position pos) throws Error
- public virtual async void did_save (string uri, string contents) throws Error
- public abstract async void document_change (string doc_uri, Container changes) throws Error
Notify the server for changes in the file to re-parse and provides
symbols
- public virtual async void document_close (string uri) throws Error
- public virtual async Container? document_color (string uri) throws Error
- public virtual async Container? document_highlight (string uri, Position pos) throws Error
- public virtual async Container? document_link (string uri, Variant? work_done_token) throws Error
- public virtual async DocumentLink? document_link_resolve (string uri, Variant? work_done_token) throws Error
- public abstract async void document_open (string doc_uri, string? contents) throws Error
Notify the server to open a new file to parse and provides symbols
- public abstract async Container document_symbols (string uri) throws Error
Find all symbols for the given URI. Returns a
GVo.Container with a list of DocumentSymbol objects in the document.
- public virtual async string execute_command (string cmd, Container @params) throws Error
- public virtual async Container? folding_range (string uri) throws Error
- public virtual async Hover? hover (string uri, Position position, Variant? work_done_token) throws Error
- public virtual async Container? implementation (string uri, Position pos) throws Error
- public abstract async void initialize (string? uri) throws Error
Set the workspace path in current file system to the server
- public abstract async void notify_initialized () throws Error
Send initialized notification to the server
- public virtual async Variant? prepare_rename (string uri, Position pos) throws Error
- public virtual async void received_diagnostics (PublishDiagnosticsParams d)
- public virtual async Container? references (string uri, Position pos, bool decl, Variant? work_done_token, Variant? partial_result_token) throws Error
- public virtual async Variant? rename (string uri, string new_name, Position pos, Variant? work_done_token) throws Error
- public virtual async Container? request_format (string uri, FormattingOptions options, Variant? work_done_token) throws Error
Request format all file's content, returning a list of
GVls.TextEdit object as a GVo.Container to apply
over the file's content at the range indicated by GVls.TextEdit objects
- public virtual async Container? request_on_type_format (string uri, Position pos, string text, FormattingOptions options) throws Error
- public virtual async Container? request_range_format (string uri, Range range, FormattingOptions options, Variant? work_done_token) throws Error
Request format file's content at given
GVls.Range, returning a list of
GVls.TextEdit object as a GVo.Container to apply over the file's content at the range indicated
by GVls.TextEdit objects
- public abstract async void server_exit () throws Error
Notify the server to exit its process
- public abstract async string server_shutdown () throws Error
Request the server to start a shutdown process.
- public virtual async void show_message (string type, string msg) throws Error
- public virtual async SignatureHelp? signature_help (string uri, Position position, Variant? work_done_token, SignatureHelpContext? context = null) throws Error
- public abstract async Container symbol (string symbol) throws Error
Query symbols on the server
- public virtual async Container? type_definition (string uri, Position pos) throws Error
- public virtual async void will_save (string uri, TextDocumentSaveReason reason) throws Error
- public virtual async Container? will_save_wait_until (string uri, TextDocumentSaveReason reason) throws Error
Signals:
- public signal void configuration_sent ()
Responded a request from the client about current configuration
- public signal void diagnostics (PublishDiagnosticsParams dgs)
Diagnostics messages has been receibed
- public signal void did_completion (ListModel list)
Emmited once a completion has been completed providing a list of
completion items returned by the server
- public signal void did_initialization ()
Server initialization has been performed
- public signal void notified_configuration_change ()
Notified to the server the configuration has been changed
- public signal void notified_initialized ()
Notified to the server the client has been initialized
- public signal void show (string type, string msg)
Request to show a message to a user
Inherited Members:
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref