pub fn send_did_change(
        &mut self,
        view_id: ViewId,
        changes: Vec<TextDocumentContentChangeEvent>,
        version: u64,
    ) {
        let text_document_did_change_params = DidChangeTextDocumentParams {
            text_document: VersionedTextDocumentIdentifier {
                uri: self.opened_documents.get(&view_id).unwrap().clone(),
                version: Some(version),
            },
            content_changes: changes,
        };

        eprintln!(
            "\n\n params did_change_notif :\n {:?}\n\n",
            text_document_did_change_params
        );

        let params = Params::from(serde_json::to_value(text_document_did_change_params).unwrap());
        self.send_notification("textDocument/didChange", params);
    }
/// Send textDocument/didChange Notification to the Language Server
Send textDocument/didChange Notification to the Language Server
Send textDocument / didChange Notification to the Language Server
pub fn send_did_change(
        &mut self,
        view_id: ViewId,
        changes: Vec<TextDocumentContentChangeEvent>,
        version: u64,
    ) {
        let text_document_did_change_params = DidChangeTextDocumentParams {
            text_document: VersionedTextDocumentIdentifier {
                uri: self.opened_documents.get(&view_id).unwrap().clone(),
                version: Some(version),
            },
            content_changes: changes,
        };
        eprintln!(
            "\n\n params did_change_notif :\n {:?}\n\n",
            text_document_did_change_params
        );
        let params = Params::from(serde_json::to_value(text_document_did_change_params).unwrap());
        self.send_notification("textDocument/didChange", params);
    }
pub fn send_did_change ( & mut self , view_id : ViewId , changes : Vec < TextDocumentContentChangeEvent > , version : u64 , ) { let text_document_did_change_params = DidChangeTextDocumentParams { text_document : VersionedTextDocumentIdentifier { uri : self . opened_documents . get ( & view_id ) . unwrap ( ) . clone ( ) , version : Some ( version ) , } , content_changes : changes , } ; eprintln ! ( " \n \n \n \n \n " text_document_did_change_params ) ; let params = Params :: from ( serde_json :: to_value ( text_document_did_change_params ) . unwrap ( ) ) ; self . send_notification ( " " , params ) ; }
Send textDocument/didChange Notification to the Language Server
Send textDocument / didChange Notification to the Language Server
&mut self
view_id
ViewId
changes
Vec<TextDocumentContentChangeEvent>
version
u64