Skip to content

Commit f15b4da

Browse files
committed
Remove unused kind param
1 parent 19491c9 commit f15b4da

File tree

6 files changed

+9
-6
lines changed

6 files changed

+9
-6
lines changed

Contributor Documentation/BSP Extensions.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ export interface SourceKitInitializeBuildResponseData {
3939
* `FileSystemWatcher` is the same as in LSP. */
4040
watchers?: [FileSystemWatcher]
4141
}
42+
43+
export interface MultiTargetPreparationSupport {
44+
/** Whether the build server can prepare multiple targets in parallel. If this value is omitted, it is assumed to be `true`. */
45+
supported: bool;
46+
}
4247
```
4348

4449
## `build/taskStart`

Sources/BuildServerIntegration/BuildServerManager.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -325,10 +325,6 @@ package actor BuildServerManager: QueueBasedMessageHandler {
325325
/// The build server adapter that is used to answer build server queries.
326326
private var buildServerAdapter: BuildServerAdapter?
327327

328-
/// The kind of underlying build server adapter that is being managed.
329-
/// `nil` if the `BuildServerManager` does not have an underlying build system.
330-
private var kind: BuildServerSpec.Kind?
331-
332328
/// The build server adapter after initialization finishes. When sending messages to the BSP server, this should be
333329
/// preferred over `buildServerAdapter` because no messages must be sent to the build server before initialization
334330
/// finishes.
@@ -455,7 +451,6 @@ package actor BuildServerManager: QueueBasedMessageHandler {
455451
self.toolchainRegistry = toolchainRegistry
456452
self.options = options
457453
self.connectionToClient = connectionToClient
458-
self.kind = buildServerSpec?.kind
459454
self.configPath = buildServerSpec?.configPath
460455
self.buildServerAdapter = await buildServerSpec?.createBuildServerAdapter(
461456
toolchainRegistry: toolchainRegistry,

Sources/SKTestSupport/CustomBuildServerTestProject.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ package extension CustomBuildServer {
183183
indexStorePath: try projectRoot.appendingPathComponent("index-store").filePath,
184184
outputPathsProvider: outputPathsProvider,
185185
prepareProvider: true,
186-
sourceKitOptionsProvider: true,
186+
sourceKitOptionsProvider: true
187187
)
188188
)
189189
}

Sources/SemanticIndex/SemanticIndexManager.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -654,6 +654,7 @@ package final actor SemanticIndexManager {
654654
guard !targetsToPrepare.isEmpty else {
655655
return
656656
}
657+
657658
let taskDescription = AnyIndexTaskDescription(
658659
PreparationTaskDescription(
659660
targetsToPrepare: targetsToPrepare,

Sources/SemanticIndex/TaskScheduler.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,7 @@ package actor TaskScheduler<TaskDescription: TaskDescriptionProtocol> {
370370
// We didn't actually change anything, so we don't need to perform any validation or task processing.
371371
return
372372
}
373+
373374
// Check we are over-subscribed in currently executing tasks by walking through all currently executing tasks and
374375
// checking if we could schedule them within the new execution limits. Cancel any tasks that do not fit within the
375376
// new limit to be rescheduled when we are within the limit again.

Tests/SourceKitLSPTests/BackgroundIndexingTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2624,6 +2624,7 @@ final class BackgroundIndexingTests: XCTestCase {
26242624
let symbols = try await project.testClient.send(WorkspaceSymbolsRequest(query: "myTestFu"))
26252625
XCTAssertEqual(symbols?.count, 1)
26262626
}
2627+
}
26272628

26282629
extension HoverResponseContents {
26292630
var markupContent: MarkupContent? {

0 commit comments

Comments
 (0)