File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -19,10 +19,6 @@ import SourceKitLSP
19
19
import SwiftExtensions
20
20
import XCTest
21
21
22
- private extension Language {
23
- static let swiftinterface = Language ( rawValue: " swiftinterface " )
24
- }
25
-
26
22
final class SwiftInterfaceTests : XCTestCase {
27
23
func testSystemModuleInterface( ) async throws {
28
24
let testClient = try await TestSourceKitLSPClient ( )
@@ -330,7 +326,7 @@ final class SwiftInterfaceTests: XCTestCase {
330
326
GetReferenceDocumentRequest . method: . dictionary( [ " supported " : . bool( true ) ] )
331
327
] )
332
328
)
333
- let uri = DocumentURI ( for: . swiftinterface )
329
+ let uri = DocumentURI ( for: . swift )
334
330
335
331
let positions = testClient. openDocument (
336
332
"""
@@ -345,9 +341,8 @@ final class SwiftInterfaceTests: XCTestCase {
345
341
DefinitionRequest ( textDocument: TextDocumentIdentifier ( uri) , position: positions [ " 1️⃣ " ] )
346
342
)
347
343
let foundationLocation = try XCTUnwrap ( foundationDefinition? . locations? . only)
348
- // Verify it's a swiftinterface file (can be either file:// or sourcekit-lsp:// scheme)
349
344
XCTAssertTrue ( foundationLocation. uri. scheme == " sourcekit-lsp " )
350
- XCTAssertTrue ( foundationLocation. uri. pseudoPath. hasSuffix ( " Foundation.swiftinterface " ) )
345
+ XCTAssertTrue ( foundationLocation. uri. pseudoPath. contains ( " Foundation.swiftinterface " ) )
351
346
}
352
347
353
348
func testFoundationSubmoduleNavigation( ) async throws {
You can’t perform that action at this time.
0 commit comments