@@ -17,6 +17,7 @@ import PackageModel
17
17
import SKCore
18
18
import SKSwiftPMWorkspace
19
19
import SKTestSupport
20
+ import SourceKitLSP
20
21
import TSCBasic
21
22
import XCTest
22
23
@@ -44,7 +45,7 @@ final class SwiftPMWorkspaceTests: XCTestCase {
44
45
workspacePath: packageRoot,
45
46
toolchainRegistry: tr,
46
47
fileSystem: fs,
47
- buildSetup: TestSourceKitLSPClient . serverOptions . buildSetup
48
+ buildSetup: SourceKitServer . Options . testDefault . buildSetup
48
49
)
49
50
)
50
51
}
@@ -71,7 +72,7 @@ final class SwiftPMWorkspaceTests: XCTestCase {
71
72
workspacePath: packageRoot,
72
73
toolchainRegistry: tr,
73
74
fileSystem: fs,
74
- buildSetup: TestSourceKitLSPClient . serverOptions . buildSetup
75
+ buildSetup: SourceKitServer . Options . testDefault . buildSetup
75
76
)
76
77
)
77
78
}
@@ -98,7 +99,7 @@ final class SwiftPMWorkspaceTests: XCTestCase {
98
99
workspacePath: packageRoot,
99
100
toolchainRegistry: ToolchainRegistry ( ) ,
100
101
fileSystem: fs,
101
- buildSetup: TestSourceKitLSPClient . serverOptions . buildSetup
102
+ buildSetup: SourceKitServer . Options . testDefault . buildSetup
102
103
)
103
104
)
104
105
}
@@ -126,7 +127,7 @@ final class SwiftPMWorkspaceTests: XCTestCase {
126
127
workspacePath: packageRoot,
127
128
toolchainRegistry: tr,
128
129
fileSystem: fs,
129
- buildSetup: TestSourceKitLSPClient . serverOptions . buildSetup
130
+ buildSetup: SourceKitServer . Options . testDefault . buildSetup
130
131
)
131
132
132
133
let aswift = packageRoot. appending ( components: " Sources " , " lib " , " a.swift " )
@@ -231,7 +232,7 @@ final class SwiftPMWorkspaceTests: XCTestCase {
231
232
workspacePath: packageRoot,
232
233
toolchainRegistry: tr,
233
234
fileSystem: fs,
234
- buildSetup: TestSourceKitLSPClient . serverOptions . buildSetup
235
+ buildSetup: SourceKitServer . Options . testDefault . buildSetup
235
236
)
236
237
237
238
let source = try resolveSymlinks ( packageRoot. appending ( component: " Package.swift " ) )
@@ -265,7 +266,7 @@ final class SwiftPMWorkspaceTests: XCTestCase {
265
266
workspacePath: packageRoot,
266
267
toolchainRegistry: tr,
267
268
fileSystem: fs,
268
- buildSetup: TestSourceKitLSPClient . serverOptions . buildSetup
269
+ buildSetup: SourceKitServer . Options . testDefault . buildSetup
269
270
)
270
271
271
272
let aswift = packageRoot. appending ( components: " Sources " , " lib " , " a.swift " )
@@ -309,7 +310,7 @@ final class SwiftPMWorkspaceTests: XCTestCase {
309
310
workspacePath: packageRoot,
310
311
toolchainRegistry: tr,
311
312
fileSystem: fs,
312
- buildSetup: TestSourceKitLSPClient . serverOptions . buildSetup
313
+ buildSetup: SourceKitServer . Options . testDefault . buildSetup
313
314
)
314
315
315
316
let aswift = packageRoot. appending ( components: " Sources " , " libA " , " a.swift " )
@@ -371,7 +372,7 @@ final class SwiftPMWorkspaceTests: XCTestCase {
371
372
workspacePath: packageRoot,
372
373
toolchainRegistry: tr,
373
374
fileSystem: fs,
374
- buildSetup: TestSourceKitLSPClient . serverOptions . buildSetup
375
+ buildSetup: SourceKitServer . Options . testDefault . buildSetup
375
376
)
376
377
377
378
let aswift = packageRoot. appending ( components: " Sources " , " libA " , " a.swift " )
@@ -407,7 +408,7 @@ final class SwiftPMWorkspaceTests: XCTestCase {
407
408
workspacePath: packageRoot,
408
409
toolchainRegistry: tr,
409
410
fileSystem: fs,
410
- buildSetup: TestSourceKitLSPClient . serverOptions . buildSetup
411
+ buildSetup: SourceKitServer . Options . testDefault . buildSetup
411
412
)
412
413
413
414
let acxx = packageRoot. appending ( components: " Sources " , " lib " , " a.cpp " )
@@ -499,7 +500,7 @@ final class SwiftPMWorkspaceTests: XCTestCase {
499
500
workspacePath: packageRoot,
500
501
toolchainRegistry: ToolchainRegistry . shared,
501
502
fileSystem: fs,
502
- buildSetup: TestSourceKitLSPClient . serverOptions . buildSetup
503
+ buildSetup: SourceKitServer . Options . testDefault . buildSetup
503
504
)
504
505
505
506
let aswift = packageRoot. appending ( components: " Sources " , " lib " , " a.swift " )
@@ -547,7 +548,7 @@ final class SwiftPMWorkspaceTests: XCTestCase {
547
548
workspacePath: packageRoot,
548
549
toolchainRegistry: tr,
549
550
fileSystem: fs,
550
- buildSetup: TestSourceKitLSPClient . serverOptions . buildSetup
551
+ buildSetup: SourceKitServer . Options . testDefault . buildSetup
551
552
)
552
553
553
554
let aswift1 = packageRoot. appending ( components: " Sources " , " lib " , " a.swift " )
@@ -606,7 +607,7 @@ final class SwiftPMWorkspaceTests: XCTestCase {
606
607
workspacePath: packageRoot,
607
608
toolchainRegistry: tr,
608
609
fileSystem: fs,
609
- buildSetup: TestSourceKitLSPClient . serverOptions . buildSetup
610
+ buildSetup: SourceKitServer . Options . testDefault . buildSetup
610
611
)
611
612
612
613
let acxx = packageRoot. appending ( components: " Sources " , " lib " , " a.cpp " )
@@ -651,7 +652,7 @@ final class SwiftPMWorkspaceTests: XCTestCase {
651
652
workspacePath: packageRoot,
652
653
toolchainRegistry: tr,
653
654
fileSystem: fs,
654
- buildSetup: TestSourceKitLSPClient . serverOptions . buildSetup
655
+ buildSetup: SourceKitServer . Options . testDefault . buildSetup
655
656
)
656
657
657
658
let aswift = packageRoot. appending ( components: " Sources " , " lib " , " a.swift " )
@@ -687,7 +688,7 @@ final class SwiftPMWorkspaceTests: XCTestCase {
687
688
workspacePath: packageRoot,
688
689
toolchainRegistry: tr,
689
690
fileSystem: fs,
690
- buildSetup: TestSourceKitLSPClient . serverOptions . buildSetup
691
+ buildSetup: SourceKitServer . Options . testDefault . buildSetup
691
692
)
692
693
693
694
assertEqual ( await ws. _packageRoot, try resolveSymlinks ( tempDir. appending ( component: " pkg " ) ) )
@@ -734,7 +735,7 @@ private func check(
734
735
735
736
private func buildPath(
736
737
root: AbsolutePath ,
737
- config: BuildSetup = TestSourceKitLSPClient . serverOptions . buildSetup,
738
+ config: BuildSetup = SourceKitServer . Options . testDefault . buildSetup,
738
739
platform: String
739
740
) -> AbsolutePath {
740
741
let buildPath = config. path ?? root. appending ( component: " .build " )
0 commit comments