We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45ef20f commit 0558e92Copy full SHA for 0558e92
Sources/swift-format/Run.swift
@@ -96,7 +96,8 @@ func formatMain(
96
buffer.flush()
97
try localFileSystem.writeFileContents(
98
AbsolutePath(assumingFileURL.path, relativeTo: AbsolutePath(cwd)),
99
- bytes: buffer.bytes
+ bytes: buffer.bytes,
100
+ atomically: true
101
)
102
} else {
103
try formatter.format(source: source, assumingFileURL: assumingFileURL, to: &stdoutStream)
0 commit comments