Skip to content

Commit 651eadc

Browse files
committed
Fix formatting
1 parent 87c799d commit 651eadc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/SourceKitLSP/Swift/SwiftLanguageService.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ extension SwiftLanguageService {
378378
// MARK: - Build System Integration
379379

380380
package func reopenDocument(_ notification: ReopenTextDocumentNotification) async {
381-
if(notification.textDocument.uri.scheme != "sourcekit-lsp") {
381+
if notification.textDocument.uri.scheme != "sourcekit-lsp" {
382382
let snapshot = orLog("Getting snapshot to re-open document") {
383383
try documentManager.latestSnapshot(notification.textDocument.uri)
384384
}
@@ -455,7 +455,7 @@ extension SwiftLanguageService {
455455
}
456456

457457
package func openDocument(_ notification: DidOpenTextDocumentNotification, snapshot: DocumentSnapshot) async {
458-
if(notification.textDocument.uri.scheme != "sourcekit-lsp") {
458+
if notification.textDocument.uri.scheme != "sourcekit-lsp" {
459459
cancelInFlightPublishDiagnosticsTask(for: notification.textDocument.uri)
460460
await diagnosticReportManager.removeItemsFromCache(with: notification.textDocument.uri)
461461

@@ -468,7 +468,7 @@ extension SwiftLanguageService {
468468
}
469469

470470
package func closeDocument(_ notification: DidCloseTextDocumentNotification) async {
471-
if(notification.textDocument.uri.scheme != "sourcekit-lsp") {
471+
if notification.textDocument.uri.scheme != "sourcekit-lsp" {
472472
cancelInFlightPublishDiagnosticsTask(for: notification.textDocument.uri)
473473
inFlightPublishDiagnosticsTasks[notification.textDocument.uri] = nil
474474
await diagnosticReportManager.removeItemsFromCache(with: notification.textDocument.uri)
@@ -946,7 +946,7 @@ extension SwiftLanguageService {
946946

947947
package func documentDiagnostic(_ req: DocumentDiagnosticsRequest) async throws -> DocumentDiagnosticReport {
948948
do {
949-
949+
950950
var document = req.textDocument.uri
951951
if let referenceDocument = try? ReferenceDocumentURL(from: document) {
952952
document = referenceDocument.primaryFile

0 commit comments

Comments
 (0)