Skip to content

Commit 6901514

Browse files
authored
Merge pull request #1606 from ahoppen/improve-build-system-type-logging
Improve logging of the type of build system that was opened.
2 parents 01a50a3 + e5764c5 commit 6901514

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Sources/SourceKitLSP/SourceKitLSPServer.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -910,8 +910,14 @@ extension SourceKitLSPServer {
910910
}
911911

912912
let projectRoot = await buildSystem?.projectRoot.pathString
913+
let buildSystemType =
914+
if let buildSystem {
915+
String(describing: type(of: buildSystem))
916+
} else {
917+
"<fallback build system>"
918+
}
913919
logger.log(
914-
"Created workspace at \(workspaceFolder.uri.forLogging) as \(type(of: buildSystem)) with project root \(projectRoot ?? "<nil>")"
920+
"Created workspace at \(workspaceFolder.uri.forLogging) as \(buildSystemType, privacy: .public) with project root \(projectRoot ?? "<nil>")"
915921
)
916922

917923
let workspace = try? await Workspace(

0 commit comments

Comments
 (0)