Struct lsp::types::TextDocumentItem[][src]

pub struct TextDocumentItem {
    pub uri: String,
    pub language_id: String,
    pub version: i32,
    pub text: String,
}

An item to transfer a text document from the client to the server.

Fields

The text document's uri.

The text document's language identifier

The version number of this document (it will increase after each change, including undo/redo).

The content of the opened text document.

Methods

impl TextDocumentItem
[src]

The TextDocumentItem namespace provides helper functions to work with TextDocumentItem literals.

Creates a new TextDocumentItem literal. @param uri The document's uri. @param languageId The document's language identifier. @param version The document's version number. @param text The document's text.

Trait Implementations

impl Debug for TextDocumentItem
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations