class LSProtocol::ShowDocumentParams

Overview

Params to show a resource in the UI.

@since 3.16.0

Included Modules

Defined in:

lsprotocol/types.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(uri : URI | Nil, external : Bool | Nil = nil, selection : Range | Nil = nil, take_focus : Bool | Nil = nil) #

[View source]

Instance Method Detail

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


[View source]
def 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.


[View source]
def 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.


[View source]
def uri : URI #

The uri to show.


[View source]