show_document_async


Description:

public async bool show_document_async (Uri uri, bool external = false, bool take_focus = false, Range? selection = null) throws Error

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.

Parameters:

uri

The document URI to show.

external

Indicates to show the resource in an external program. To show for example https://vala-project.org in the default web browser set this to `true`.

take_focus

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

selection

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.

Returns:

`true` if the show was successful, `false` otherwise

Since:

3.16.0