LSProtocol::ShowDocumentParams
Inherits JSON::Serializable / Reference / Object
Params to show a resource in the UI.
@since 3.16.0
Constructors
new(pull : JSON::PullParser)
Sourcenew(uri : URI | Nil, external : Bool | Nil = nil, selection : Range | Nil = nil, take_focus : Bool | Nil = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance 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.
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.
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.