Skip to content

Commit d2054e7

Browse files
authored
Merge pull request #1487 from ahoppen/diagnose-bundle-in-subdir
Save sourcekit-lsp diagnose bundles in subdirectories of temporary directory
2 parents 315d230 + d804a9a commit d2054e7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Sources/Diagnose/DiagnoseCommand.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,9 @@ public struct DiagnoseCommand: AsyncParsableCommand {
369369
if let bundleOutputPath = self.bundleOutputPath {
370370
URL(fileURLWithPath: bundleOutputPath)
371371
} else {
372-
FileManager.default.temporaryDirectory.appendingPathComponent("sourcekit-lsp-diagnose-\(date)")
372+
FileManager.default.temporaryDirectory
373+
.appendingPathComponent("sourcekit-lsp-diagnose")
374+
.appendingPathComponent("sourcekit-lsp-diagnose-\(date)")
373375
}
374376
try FileManager.default.createDirectory(at: bundlePath, withIntermediateDirectories: true)
375377

0 commit comments

Comments
 (0)