import { TextDocuments } from "vscode-languageserver/node";
import { TextDocument } from "vscode-languageserver-textdocument";
export class DocumentService {
    constructor(connection) {
        this.documents = new TextDocuments(TextDocument);
        this.documents.listen(connection);
    }
    get(uri) {
        return this.documents.get(uri);
    }
    getAll() {
        return this.documents.all();
    }
    get onDidChangeContent() {
        return this.documents.onDidChangeContent;
    }
    get onDidOpen() {
        return this.documents.onDidOpen;
    }
    get onDidClose() {
        return this.documents.onDidClose;
    }
}
//# sourceMappingURL=document_service.js.map