lsp-textdocument

A LSP text documents manager that map of text document.

Introduction

You may not be able to manage your text documents comfortably when developing an LSP service. There are two reasons why we develop hard.

By listening to the notification from the LSP client, lsp-textdocument can help you automatically manage text documents.

This crate is base on vscode-languageserver-textdocument.

Example usage

Basic usage

```rust use lsp_textdocument::TextDocuments;

fn main() { let text_documents = TextDocument::new(); ...

let text = text_documents.get_document_content(&url, None);

} ```

with lsp-server

examples/with_lsp_server.rs

with tower-lsp

coming soon