Method
LspClientshow_document_async
Declaration
void
lsp_client_show_document_async (
LspClient* self,
GUri* uri,
gboolean external,
gboolean take_focus,
LspRange* selection,
GAsyncReadyCallback _callback_,
void* _callback__target
)
Description
The show document request is sent from a server to a client to ask the client to display a particular document in the user interface.
Since: 3.16.0.
Parameters
uri-
Type:
GUriThe document URI to show.
The data is owned by the caller of the method. external-
Type:
gbooleanIndicates to show the resource in an external program. To show for example in the default web browser set this to
true. take_focus-
Type:
gbooleanIndicates whether the editor showing the document should take focus or not. Clients might ignore this property if an external program is started.
selection-
Type:
LspRangeAn optional selection range if the document is a text document. Clients might ignore the property if an external program is started or the file is not a text file.
The argument can be NULL.The data is owned by the caller of the method. _callback_-
Type:
GAsyncReadyCallbackNo description available.
The argument can be NULL. _callback__target-
Type:
void*No description available.
The argument can be NULL.The data is owned by the caller of the method.