pub fn try_write(&mut self, data: &[u8]) -> io::Result<()> {
        let queue = self.update_and_read_messages(data)?;

        // Process and then send out each LSP message in our queue
        for mut data in queue {
            // Convert distant:// to file://
            data.mut_content().convert_distant_scheme_to_local();
            data.refresh_content_length();
            self.inner.try_write_str(data.to_string())?;
        }

        Ok(())
    }
/// Tries to write data to the stdin of a specific remote process
Tries to write data to the stdin of a specific remote process
Tries to write data to the stdin of a specific remote process
pub fn try_write(&mut self, data: &[u8]) -> io::Result<()> {
        let queue = self.update_and_read_messages(data)?;
        // Process and then send out each LSP message in our queue
        for mut data in queue {
            // Convert distant:// to file://
            data.mut_content().convert_distant_scheme_to_local();
            data.refresh_content_length();
            self.inner.try_write_str(data.to_string())?;
        }
        Ok(())
    }
pub fn try_write ( & mut self , data : & [ u8 ] ) -> io :: Result < ( ) > { let queue = self . update_and_read_messages ( data ) ? ; // Process and then send out each LSP message in our queue for mut data in queue { // Convert distant:// to file:// data . mut_content ( ) . convert_distant_scheme_to_local ( ) ; data . refresh_content_length ( ) ; self . inner . try_write_str ( data . to_string ( ) ) ? ; } Ok ( ( ) ) }
Tries to write data to the stdin of a specific remote process
Tries to write data to the stdin of a specific remote process
&mut self
data
&[u8]