struct

LSP::ShowDocumentParams

Inherits JSON::Serializable < Struct < Value < Object

Params to show a document.

Constructors

new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

external

Indicates to show the resource in an external program. To show for example https://code.visualstudio.com/ in the default WEB browser set external to true.

Source
external=(external : Bool | Nil)

Indicates to show the resource in an external program. To show for example https://code.visualstudio.com/ in the default WEB browser set external to true.

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

Source
selection=(selection : Range | Nil)

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.

Source
take_focus

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

Source
take_focus=(take_focus : Bool | Nil)

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

Source
uri

The document uri to show.

Source
uri=(uri : String)

The document uri to show.

Source