Skip to content

Commit 22425e9

Browse files
committed
Runs format-source-code
1 parent df47d38 commit 22425e9

File tree

8 files changed

+15
-15
lines changed

8 files changed

+15
-15
lines changed

Sources/Diagnose/DiagnoseCommand.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13+
import Synchronization
14+
1315
#if compiler(>=6)
1416
package import ArgumentParser
1517
import Foundation
@@ -34,8 +36,6 @@ import class TSCBasic.Process
3436
import class TSCUtility.PercentProgressAnimation
3537
#endif
3638

37-
import Synchronization
38-
3939
/// When diagnosis is started, a progress bar displayed on the terminal that shows how far the diagnose command has
4040
/// progressed.
4141
/// Can't be a member of `DiagnoseCommand` because then `DiagnoseCommand` is no longer codable, which it needs to be

Sources/InProcessClient/InProcessSourceKitLSPClient.swift

+1-2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ public import Foundation
1515
public import LanguageServerProtocol
1616
import LanguageServerProtocolExtensions
1717
import SwiftExtensions
18+
import Synchronization
1819
import TSCExtensions
1920

2021
import struct TSCBasic.AbsolutePath
@@ -29,8 +30,6 @@ import SourceKitLSP
2930
import ToolchainRegistry
3031
#endif
3132

32-
import Synchronization
33-
3433
/// Launches a `SourceKitLSPServer` in-process and allows sending messages to it.
3534
public final class InProcessSourceKitLSPClient: Sendable {
3635
private let server: SourceKitLSPServer

Sources/LanguageServerProtocolExtensions/RequestAndReply.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13+
import Synchronization
14+
1315
#if compiler(>=6)
1416
package import LanguageServerProtocol
1517
import SwiftExtensions
@@ -18,8 +20,6 @@ import LanguageServerProtocol
1820
import SwiftExtensions
1921
#endif
2022

21-
import Synchronization
22-
2323
/// A request and a callback that returns the request's reply
2424
package final class RequestAndReply<Params: RequestType>: Sendable {
2525
package let params: Params

Sources/SKLogging/NonDarwinLogging.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13+
import Synchronization
14+
1315
#if compiler(>=6)
1416
package import SwiftExtensions
1517
#else
@@ -23,8 +25,6 @@ import Foundation
2325
@preconcurrency import Foundation
2426
#endif
2527

26-
import Synchronization
27-
2828
// MARK: - Log settings
2929

3030
package enum LogConfig {

Sources/SKTestSupport/TestSourceKitLSPClient.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,8 @@ package final class TestSourceKitLSPClient: MessageHandler, Sendable {
223223
// It's really unfortunate that there are no async deinits. If we had async
224224
// deinits, we could await the sending of a ShutdownRequest.
225225
let sema = DispatchSemaphore(value: 0)
226-
server.handle(ShutdownRequest(), id: .number(Int(nextRequestID.add(1, ordering: .sequentiallyConsistent).oldValue))) { result in
226+
server.handle(ShutdownRequest(), id: .number(Int(nextRequestID.add(1, ordering: .sequentiallyConsistent).oldValue)))
227+
{ result in
227228
sema.signal()
228229
}
229230
sema.wait()

Sources/SemanticIndex/PreparationTaskDescription.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13+
import Synchronization
14+
1315
#if compiler(>=6)
1416
package import BuildServerProtocol
1517
import BuildSystemIntegration
@@ -34,8 +36,6 @@ import struct TSCBasic.AbsolutePath
3436
import class TSCBasic.Process
3537
#endif
3638

37-
import Synchronization
38-
3939
private let preparationIDForLogging: Atomic<Int> = Atomic(1)
4040

4141
/// Describes a task to prepare a set of targets.

Sources/SemanticIndex/TaskScheduler.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13+
import Synchronization
14+
1315
#if compiler(>=6)
1416
import Foundation
1517
import LanguageServerProtocolExtensions
@@ -22,8 +24,6 @@ import SKLogging
2224
import SwiftExtensions
2325
#endif
2426

25-
import Synchronization
26-
2727
/// See comment on ``TaskDescriptionProtocol/dependencies(to:taskPriority:)``
2828
package enum TaskDependencyAction<TaskDescription: TaskDescriptionProtocol> {
2929
case waitAndElevatePriorityOfDependency(TaskDescription)

Sources/SemanticIndex/UpdateIndexStoreTaskDescription.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13+
import Synchronization
14+
1315
#if compiler(>=6)
1416
package import BuildServerProtocol
1517
import BuildSystemIntegration
@@ -40,8 +42,6 @@ import class TSCBasic.Process
4042
import struct TSCBasic.ProcessResult
4143
#endif
4244

43-
import Synchronization
44-
4545
private let updateIndexStoreIDForLogging: Atomic<Int> = Atomic(1)
4646

4747
package enum FileToIndex: CustomLogStringConvertible {

0 commit comments

Comments
 (0)