pub fn send_did_open(
        &mut self,
        view_id: ViewId,
        document_uri: Url,
        document_text: String,
    ) {
        self.opened_documents.insert(view_id, document_uri.clone());

        let text_document_did_open_params = DidOpenTextDocumentParams {
            text_document: TextDocumentItem {
                language_id: self.language_id.clone(),
                uri: document_uri,
                version: 0,
                text: document_text,
            },
        };

        let params = Params::from(serde_json::to_value(text_document_did_open_params).unwrap());
        self.send_notification("textDocument/didOpen", params);
    }
/// Send textDocument/didOpen Notification to the Language Server
Send textDocument/didOpen Notification to the Language Server
Send textDocument / didOpen Notification to the Language Server
pub fn send_did_open(
        &mut self,
        view_id: ViewId,
        document_uri: Url,
        document_text: String,
    ) {
        self.opened_documents.insert(view_id, document_uri.clone());
        let text_document_did_open_params = DidOpenTextDocumentParams {
            text_document: TextDocumentItem {
                language_id: self.language_id.clone(),
                uri: document_uri,
                version: 0,
                text: document_text,
            },
        };
        let params = Params::from(serde_json::to_value(text_document_did_open_params).unwrap());
        self.send_notification("textDocument/didOpen", params);
    }
pub fn send_did_open ( & mut self , view_id : ViewId , document_uri : Url , document_text : String , ) { self . opened_documents . insert ( view_id , document_uri . clone ( ) ) ; let text_document_did_open_params = DidOpenTextDocumentParams { text_document : TextDocumentItem { language_id : self . language_id . clone ( ) , uri : document_uri , version : 0 , text : document_text , } , } ; let params = Params :: from ( serde_json :: to_value ( text_document_did_open_params ) . unwrap ( ) ) ; self . send_notification ( " " , params ) ; }
Send textDocument/didOpen Notification to the Language Server
Send textDocument / didOpen Notification to the Language Server
&mut self
view_id
ViewId
document_uri
Url
document_text
String