Crates.io | lsp-textdocument |
lib.rs | lsp-textdocument |
version | 0.4.0 |
source | src |
created_at | 2022-11-20 02:53:05.911734 |
updated_at | 2024-07-11 10:56:53.682366 |
description | A LSP text documents manager that map of text document. |
homepage | https://github.com/GiveMe-A-Name/lsp-textdocument |
repository | https://github.com/GiveMe-A-Name/lsp-textdocument |
max_upload_size | |
id | 718873 |
size | 42,686 |
lsp-textdocument
A LSP text documents manager that helps mapping of textual content.
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.
use lsp_textdocument::TextDocuments;
fn main() {
let text_documents = TextDocument::new();
...
let text = text_documents.get_document_content(&url, None);
}
lsp-server
tower-lsp
Contact us via issues if you require this with tower-lsp
UTF-16