Skip to content

Commit

Permalink
saveDocumentAsIs() doesn't throw any errors
Browse files Browse the repository at this point in the history
  • Loading branch information
InSyncWithFoo committed Feb 27, 2024
1 parent 048ad24 commit 930e06f
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,7 @@ private fun Document.getStartEndRange(range: PyrightDiagnosticTextRange): TextRa


private fun FileDocumentManager.saveAllUnsavedDocumentsAsIs() {
unsavedDocuments.forEach {
try {
saveDocumentAsIs(it)
} catch (_: Exception) {
// If a file fails to save, ignore it.
// It's better to fail silently (or maybe not).
}
}
unsavedDocuments.forEach { saveDocumentAsIs(it) }
}


Expand Down

0 comments on commit 930e06f

Please sign in to comment.