struct LSP::ShowDocumentParams

Overview

Params to show a document.

Included Modules

Defined in:

lsp/window_features/show_document.cr

Constructors

Instance Method Summary

Constructor Detail

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

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


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


[View source]
def take_focus : Bool | Nil #

[View source]
def take_focus=(take_focus : Bool | Nil) #

[View source]
def uri : String #

The document uri to show.


[View source]
def uri=(uri : String) #

The document uri to show.


[View source]