@@ -26,7 +26,7 @@ public struct BuildTargetsResult: ResponseType, Hashable {
26
26
public var targets : [ BuildTarget ]
27
27
}
28
28
29
- public struct BuildTarget : Codable , Hashable {
29
+ public struct BuildTarget : Codable , Hashable , Sendable {
30
30
/// The target’s unique identifier
31
31
public var id : BuildTargetIdentifier
32
32
@@ -81,15 +81,15 @@ public struct BuildTarget: Codable, Hashable {
81
81
}
82
82
}
83
83
84
- public struct BuildTargetIdentifier : Codable , Hashable {
84
+ public struct BuildTargetIdentifier : Codable , Hashable , Sendable {
85
85
public var uri : URI
86
86
87
87
public init ( uri: URI ) {
88
88
self . uri = uri
89
89
}
90
90
}
91
91
92
- public struct BuildTargetTag : Codable , Hashable , RawRepresentable {
92
+ public struct BuildTargetTag : Codable , Hashable , RawRepresentable , Sendable {
93
93
public var rawValue : String
94
94
95
95
public init ( rawValue: String ) {
@@ -113,7 +113,7 @@ public struct BuildTargetTag: Codable, Hashable, RawRepresentable {
113
113
/// "test" and "integration-test" is that integration tests traditionally run
114
114
/// slower compared to normal tests and require more computing resources to
115
115
/// execute.
116
- public static let integationTest : Self = Self ( rawValue: " integration-test " )
116
+ public static let integrationTest : Self = Self ( rawValue: " integration-test " )
117
117
118
118
/// Target contains source code to measure performance of a program, may have
119
119
/// but does not require the `canRun` build target capability.
@@ -123,7 +123,7 @@ public struct BuildTargetTag: Codable, Hashable, RawRepresentable {
123
123
public static let noIDE : Self = Self ( rawValue: " no-ide " )
124
124
}
125
125
126
- public struct BuildTargetCapabilities : Codable , Hashable {
126
+ public struct BuildTargetCapabilities : Codable , Hashable , Sendable {
127
127
/// This target can be compiled by the BSP server.
128
128
public var canCompile : Bool
129
129
@@ -159,14 +159,14 @@ public struct BuildTargetSourcesResult: ResponseType, Hashable {
159
159
public var items : [ SourcesItem ]
160
160
}
161
161
162
- public struct SourcesItem : Codable , Hashable {
162
+ public struct SourcesItem : Codable , Hashable , Sendable {
163
163
public var target : BuildTargetIdentifier
164
164
165
165
/// The text documents and directories that belong to this build target.
166
166
public var sources : [ SourceItem ]
167
167
}
168
168
169
- public struct SourceItem : Codable , Hashable {
169
+ public struct SourceItem : Codable , Hashable , Sendable {
170
170
/// Either a text document or a directory. A directory entry must end with a
171
171
/// forward slash "/" and a directory entry implies that every nested text
172
172
/// document within the directory belongs to this source item.
@@ -180,7 +180,7 @@ public struct SourceItem: Codable, Hashable {
180
180
public var generated : Bool
181
181
}
182
182
183
- public enum SourceItemKind : Int , Codable , Hashable {
183
+ public enum SourceItemKind : Int , Codable , Hashable , Sendable {
184
184
/// The source item references a normal file.
185
185
case file = 1
186
186
@@ -205,7 +205,7 @@ public struct BuildTargetOutputPathsResponse: ResponseType, Hashable {
205
205
public var items : [ OutputsItem ]
206
206
}
207
207
208
- public struct OutputsItem : Codable , Hashable {
208
+ public struct OutputsItem : Codable , Hashable , Sendable {
209
209
public var target : BuildTargetIdentifier
210
210
211
211
/// The output paths for sources that belong to this build target.
@@ -225,7 +225,7 @@ public struct BuildTargetsChangedNotification: NotificationType {
225
225
}
226
226
}
227
227
228
- public struct BuildTargetEvent : Codable , Hashable {
228
+ public struct BuildTargetEvent : Codable , Hashable , Sendable {
229
229
/// The identifier for the changed build target.
230
230
public var target : BuildTargetIdentifier
231
231
@@ -242,7 +242,7 @@ public struct BuildTargetEvent: Codable, Hashable {
242
242
}
243
243
}
244
244
245
- public enum BuildTargetEventKind : Int , Codable , Hashable {
245
+ public enum BuildTargetEventKind : Int , Codable , Hashable , Sendable {
246
246
/// The build target is new.
247
247
case created = 1
248
248
0 commit comments