Class: LSP::TextDocumentItem
Overview
export interface TextDocumentItem
/**
* The text document's uri.
*/
uri: DocumentUri;
/**
* The text document's language identifier
*/
languageId: string;
/**
* The version number of this document (it will increase after each
* change, including undo/redo).
*/
version: number;
/**
* The content of the opened text document.
*/
text: string;
Instance Attribute Summary collapse
-
#languageId ⇒ Object
type: DocumentUri # type: string # type: number # type: string.
-
#text ⇒ Object
type: DocumentUri # type: string # type: number # type: string.
-
#uri ⇒ Object
type: DocumentUri # type: string # type: number # type: string.
-
#version ⇒ Object
type: DocumentUri # type: string # type: number # type: string.
Instance Method Summary collapse
Methods inherited from LSPBase
Constructor Details
This class inherits a constructor from LSP::LSPBase
Instance Attribute Details
#languageId ⇒ Object
type: DocumentUri # type: string # type: number # type: string
715 716 717 |
# File 'lib/lsp/lsp_types.rb', line 715 def languageId @languageId end |
#text ⇒ Object
type: DocumentUri # type: string # type: number # type: string
715 716 717 |
# File 'lib/lsp/lsp_types.rb', line 715 def text @text end |
#uri ⇒ Object
type: DocumentUri # type: string # type: number # type: string
715 716 717 |
# File 'lib/lsp/lsp_types.rb', line 715 def uri @uri end |
#version ⇒ Object
type: DocumentUri # type: string # type: number # type: string
715 716 717 |
# File 'lib/lsp/lsp_types.rb', line 715 def version @version end |
Instance Method Details
#from_h!(value) ⇒ Object
717 718 719 720 721 722 723 724 |
# File 'lib/lsp/lsp_types.rb', line 717 def from_h!(value) value = {} if value.nil? self.uri = value['uri'] # Unknown type self.languageId = value['languageId'] self.version = value['version'] self.text = value['text'] self end |