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.
1 parent 7772f07 commit a1f909aCopy full SHA for a1f909a
Sources/SourceKitLSP/Swift/SwiftLanguageServer.swift
@@ -367,6 +367,12 @@ extension SwiftLanguageServer {
367
/// If the client doesn't support pull diagnostics, compute diagnostics for the latest version of the given document
368
/// and send a `PublishDiagnosticsNotification` to the client for it.
369
private func publishDiagnosticsIfNeeded(for document: DocumentURI) {
370
+ withLoggingScope("publish-diagnostics") {
371
+ publishDiagnosticsIfNeededImpl(for: document)
372
+ }
373
374
+
375
+ private func publishDiagnosticsIfNeededImpl(for document: DocumentURI) {
376
guard enablePublishDiagnostics else {
377
return
378
}
0 commit comments