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.
2 parents 0f55306 + cf48252 commit 67be113Copy full SHA for 67be113
Sources/sourcekit-lsp/SourceKitLSP.swift
@@ -274,7 +274,10 @@ struct SourceKitLSP: AsyncParsableCommand {
274
// Park the main function by sleeping for 10 years.
275
// All request handling is done on other threads and sourcekit-lsp exits by calling `_Exit` when it receives a
276
// shutdown notification.
277
- try await Task.sleep(for: .seconds(60 * 60 * 24 * 365 * 10))
+ while true {
278
+ try? await Task.sleep(for: .seconds(60 * 60 * 24 * 365 * 10))
279
+ logger.fault("10 year wait that's parking the main thread expired. Waiting again.")
280
+ }
281
}
282
283
0 commit comments