Skip to content

Commit 65cfc4a

Browse files
committed
Only capture source code diagnostics in full capture mode
1 parent 8db034f commit 65cfc4a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/commands/captureDiagnostics.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,10 @@ export async function captureDiagnostics(
4343
await fs.mkdir(diagnosticsDir);
4444
await writeLogFile(diagnosticsDir, "extension-logs.txt", extensionLogs(ctx));
4545
await writeLogFile(diagnosticsDir, "settings.txt", settingsLogs(ctx));
46-
await writeLogFile(diagnosticsDir, "source-code-diagnostics.txt", diagnosticLogs());
4746

4847
if (captureMode === "Full") {
48+
await writeLogFile(diagnosticsDir, "source-code-diagnostics.txt", diagnosticLogs());
49+
4950
// The `sourcekit-lsp diagnose` command is only available in 6.0 and higher.
5051
if (ctx.swiftVersion.isGreaterThanOrEqual(new Version(6, 0, 0))) {
5152
await sourcekitDiagnose(ctx, diagnosticsDir);

0 commit comments

Comments
 (0)