@@ -378,7 +378,7 @@ extension SwiftLanguageService {
378
378
// MARK: - Build System Integration
379
379
380
380
package func reopenDocument( _ notification: ReopenTextDocumentNotification ) async {
381
- if ( notification. textDocument. uri. scheme != " sourcekit-lsp " ) {
381
+ if notification. textDocument. uri. scheme != " sourcekit-lsp " {
382
382
let snapshot = orLog ( " Getting snapshot to re-open document " ) {
383
383
try documentManager. latestSnapshot ( notification. textDocument. uri)
384
384
}
@@ -455,7 +455,7 @@ extension SwiftLanguageService {
455
455
}
456
456
457
457
package func openDocument( _ notification: DidOpenTextDocumentNotification , snapshot: DocumentSnapshot ) async {
458
- if ( notification. textDocument. uri. scheme != " sourcekit-lsp " ) {
458
+ if notification. textDocument. uri. scheme != " sourcekit-lsp " {
459
459
cancelInFlightPublishDiagnosticsTask ( for: notification. textDocument. uri)
460
460
await diagnosticReportManager. removeItemsFromCache ( with: notification. textDocument. uri)
461
461
@@ -468,7 +468,7 @@ extension SwiftLanguageService {
468
468
}
469
469
470
470
package func closeDocument( _ notification: DidCloseTextDocumentNotification ) async {
471
- if ( notification. textDocument. uri. scheme != " sourcekit-lsp " ) {
471
+ if notification. textDocument. uri. scheme != " sourcekit-lsp " {
472
472
cancelInFlightPublishDiagnosticsTask ( for: notification. textDocument. uri)
473
473
inFlightPublishDiagnosticsTasks [ notification. textDocument. uri] = nil
474
474
await diagnosticReportManager. removeItemsFromCache ( with: notification. textDocument. uri)
@@ -946,7 +946,7 @@ extension SwiftLanguageService {
946
946
947
947
package func documentDiagnostic( _ req: DocumentDiagnosticsRequest ) async throws -> DocumentDiagnosticReport {
948
948
do {
949
-
949
+
950
950
var document = req. textDocument. uri
951
951
if let referenceDocument = try ? ReferenceDocumentURL ( from: document) {
952
952
document = referenceDocument. primaryFile
0 commit comments