File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 13
13
import Foundation
14
14
import LanguageServerProtocol
15
15
import SKCore
16
+ import SourceKitLSP
16
17
17
18
/// The location of a test file within test workspace.
18
19
public struct RelativeFileLocation : Hashable , ExpressibleByStringLiteral {
@@ -79,6 +80,7 @@ public class MultiFileTestProject {
79
80
public init (
80
81
files: [ RelativeFileLocation : String ] ,
81
82
workspaces: ( URL ) async throws -> [ WorkspaceFolder ] = { [ WorkspaceFolder ( uri: DocumentURI ( $0) ) ] } ,
83
+ serverOptions: SourceKitLSPServer . Options = . testDefault,
82
84
usePullDiagnostics: Bool = true ,
83
85
testName: String = #function
84
86
) async throws {
@@ -109,6 +111,7 @@ public class MultiFileTestProject {
109
111
self . fileData = fileData
110
112
111
113
self . testClient = try await TestSourceKitLSPClient (
114
+ serverOptions: serverOptions,
112
115
usePullDiagnostics: usePullDiagnostics,
113
116
workspaceFolders: workspaces ( scratchDirectory) ,
114
117
cleanUp: { [ scratchDirectory] in
Original file line number Diff line number Diff line change 13
13
import Foundation
14
14
import LanguageServerProtocol
15
15
@_spi ( Testing) import SKCore
16
+ import SourceKitLSP
16
17
import TSCBasic
17
18
18
19
public class SwiftPMTestProject : MultiFileTestProject {
@@ -41,6 +42,7 @@ public class SwiftPMTestProject: MultiFileTestProject {
41
42
workspaces: ( URL ) async throws -> [ WorkspaceFolder ] = { [ WorkspaceFolder ( uri: DocumentURI ( $0) ) ] } ,
42
43
build: Bool = false ,
43
44
allowBuildFailure: Bool = false ,
45
+ serverOptions: SourceKitLSPServer . Options = . testDefault,
44
46
usePullDiagnostics: Bool = true ,
45
47
testName: String = #function
46
48
) async throws {
@@ -63,6 +65,7 @@ public class SwiftPMTestProject: MultiFileTestProject {
63
65
try await super. init (
64
66
files: filesByPath,
65
67
workspaces: workspaces,
68
+ serverOptions: serverOptions,
66
69
usePullDiagnostics: usePullDiagnostics,
67
70
testName: testName
68
71
)
You can’t perform that action at this time.
0 commit comments