class LSProtocol::OptionalVersionedTextDocumentIdentifier

Overview

A text document identifier to optionally denote a specific version of a text document.

Included Modules

Defined in:

lsprotocol/types.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(uri : URI | Nil, version : Int32 | Nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def uri : URI #

The text document's uri.


[View source]
def version : Int32 | Nil #

The version number of this document. If a versioned text document identifier is sent from the server to the client and the file is not open in the editor (the server has not received an open notification before) the server can send null to indicate that the version is unknown and the content on disk is the truth (as specified with document content ownership).


[View source]