Files
sourcekit-lsp/Sources/SKCore/CompilationDatabaseBuildSystem.swift
Alex Hoppen 8286113fef Set the build system to nil if no compilation database can be loaded
When we couldn’t start a build server or find a SwiftPM package, we currently always create a `CompilationDatabaseBuildSystem`, even if no `compile_commands.json` or `compile_flags.txt` exits. Every request for build settings would then log an error that the compilation database can’t be opened, which was very spammy. Instead, if the compilation database can’t be loaded, just set the build system to `nil` and log a single error message.
2023-10-27 09:45:34 -07:00

5.8 KiB