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: GUri

The document URI to show.

The data is owned by the caller of the method.
external

Type: gboolean

Indicates to show the resource in an external program. To show for example in the default web browser set this to true.

take_focus

Type: gboolean

Indicates whether the editor showing the document should take focus or not. Clients might ignore this property if an external program is started.

selection

Type: LspRange

An 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: GAsyncReadyCallback

No 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.