|
|
@ -977,18 +977,7 @@ impl Application {
|
|
|
|
errs.push(err);
|
|
|
|
errs.push(err);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
for doc in self.editor.documents_mut() {
|
|
|
|
self.editor.flush_writes().await;
|
|
|
|
if let Some(Err(err)) = doc.close().await {
|
|
|
|
|
|
|
|
if let Some(path) = doc.path() {
|
|
|
|
|
|
|
|
log::error!(
|
|
|
|
|
|
|
|
"Error saving document '{}': {}",
|
|
|
|
|
|
|
|
path.to_string_lossy(),
|
|
|
|
|
|
|
|
err
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
errs.push(err);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if self.editor.close_language_servers(None).await.is_err() {
|
|
|
|
if self.editor.close_language_servers(None).await.is_err() {
|
|
|
|
log::error!("Timed out waiting for language servers to shutdown");
|
|
|
|
log::error!("Timed out waiting for language servers to shutdown");
|
|
|
|