pub fn send_did_save(&mut self, view_id: ViewId, _document_text: String) {
        // Add support for sending document text as well. Currently missing in LSP types
        // and is optional in LSP Specification
        let text_document_did_save_params = DidSaveTextDocumentParams {
            text_document: TextDocumentIdentifier {
                uri: self.opened_documents.get(&view_id).unwrap().clone(),
            },
        };

        let params = Params::from(serde_json::to_value(text_document_did_save_params).unwrap());
        self.send_notification("textDocument/didSave", params);
    }
/// Send textDocument/didSave notification to the Language Server
Send textDocument/didSave notification to the Language Server
Send textDocument / didSave notification to the Language Server
pub fn send_did_save(&mut self, view_id: ViewId, _document_text: String) {
        // Add support for sending document text as well. Currently missing in LSP types
        // and is optional in LSP Specification
        let text_document_did_save_params = DidSaveTextDocumentParams {
            text_document: TextDocumentIdentifier {
                uri: self.opened_documents.get(&view_id).unwrap().clone(),
            },
        };
        let params = Params::from(serde_json::to_value(text_document_did_save_params).unwrap());
        self.send_notification("textDocument/didSave", params);
    }
pub fn send_did_save ( & mut self , view_id : ViewId , _document_text : String ) { // Add support for sending document text as well. Currently missing in LSP types // and is optional in LSP Specification let text_document_did_save_params = DidSaveTextDocumentParams { text_document : TextDocumentIdentifier { uri : self . opened_documents . get ( & view_id ) . unwrap ( ) . clone ( ) , } , } ; let params = Params :: from ( serde_json :: to_value ( text_document_did_save_params ) . unwrap ( ) ) ; self . send_notification ( " " , params ) ; }
Send textDocument/didSave notification to the Language Server
Send textDocument / didSave notification to the Language Server
&mut self
view_id
ViewId
_document_text
String