Skip to content

Commit f250550

Browse files
authored
Merge pull request #1773 from ahoppen/enable-semantic-token-tests
Re-enable SemanticTokenTests and SwiftInterfaceTests on Windows
2 parents 5d47358 + fba4a79 commit f250550

File tree

2 files changed

+0
-60
lines changed

2 files changed

+0
-60
lines changed

Tests/SourceKitLSPTests/SemanticTokensTests.swift

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -330,11 +330,6 @@ final class SemanticTokensTests: XCTestCase {
330330
func testSemanticTokensForFunctionSignatures() async throws {
331331
try await SkipUnless.sourcekitdHasSemanticTokensRequest()
332332

333-
#if os(Windows)
334-
// FIXME: Run when https://github.com/swiftlang/sourcekit-lsp/issues/1770 is fixed
335-
try XCTSkipIf(true, "https://github.com/swiftlang/sourcekit-lsp/issues/1770")
336-
#endif
337-
338333
try await assertSemanticTokens(
339334
markedContents: "1️⃣func 2️⃣f(3️⃣x: 4️⃣Int, _ 5️⃣y: 6️⃣String) {}",
340335
expected: [
@@ -409,11 +404,6 @@ final class SemanticTokensTests: XCTestCase {
409404
func testSemanticTokensForEnumMembers() async throws {
410405
try await SkipUnless.sourcekitdHasSemanticTokensRequest()
411406

412-
#if os(Windows)
413-
// FIXME: Run when https://github.com/swiftlang/sourcekit-lsp/issues/1770 is fixed
414-
try XCTSkipIf(true, "https://github.com/swiftlang/sourcekit-lsp/issues/1770")
415-
#endif
416-
417407
try await assertSemanticTokens(
418408
markedContents: """
419409
1️⃣enum 2️⃣Maybe<3️⃣T> {
@@ -500,11 +490,6 @@ final class SemanticTokensTests: XCTestCase {
500490
func testEmptyEdit() async throws {
501491
try await SkipUnless.sourcekitdHasSemanticTokensRequest()
502492

503-
#if os(Windows)
504-
// FIXME: Run when https://github.com/swiftlang/sourcekit-lsp/issues/1770 is fixed
505-
try XCTSkipIf(true, "https://github.com/swiftlang/sourcekit-lsp/issues/1770")
506-
#endif
507-
508493
let testClient = try await TestSourceKitLSPClient()
509494
let uri = DocumentURI(for: .swift)
510495
let positions = testClient.openDocument(
@@ -588,11 +573,6 @@ final class SemanticTokensTests: XCTestCase {
588573
func testReplaceUntilEndOfToken() async throws {
589574
try await SkipUnless.sourcekitdHasSemanticTokensRequest()
590575

591-
#if os(Windows)
592-
// FIXME: Run when https://github.com/swiftlang/sourcekit-lsp/issues/1770 is fixed
593-
try XCTSkipIf(true, "https://github.com/swiftlang/sourcekit-lsp/issues/1770")
594-
#endif
595-
596576
let testClient = try await TestSourceKitLSPClient()
597577
let uri = DocumentURI(for: .swift)
598578
let positions = testClient.openDocument(
@@ -646,11 +626,6 @@ final class SemanticTokensTests: XCTestCase {
646626
func testInsertSpaceBeforeToken() async throws {
647627
try await SkipUnless.sourcekitdHasSemanticTokensRequest()
648628

649-
#if os(Windows)
650-
// FIXME: Run when https://github.com/swiftlang/sourcekit-lsp/issues/1770 is fixed
651-
try XCTSkipIf(true, "https://github.com/swiftlang/sourcekit-lsp/issues/1770")
652-
#endif
653-
654629
let testClient = try await TestSourceKitLSPClient()
655630
let uri = DocumentURI(for: .swift)
656631
let positions = testClient.openDocument(
@@ -718,11 +693,6 @@ final class SemanticTokensTests: XCTestCase {
718693
func testInsertNewline() async throws {
719694
try await SkipUnless.sourcekitdHasSemanticTokensRequest()
720695

721-
#if os(Windows)
722-
// FIXME: Run when https://github.com/swiftlang/sourcekit-lsp/issues/1770 is fixed
723-
try XCTSkipIf(true, "https://github.com/swiftlang/sourcekit-lsp/issues/1770")
724-
#endif
725-
726696
let testClient = try await TestSourceKitLSPClient()
727697
let uri = DocumentURI(for: .swift)
728698
let positions = testClient.openDocument(
@@ -796,11 +766,6 @@ final class SemanticTokensTests: XCTestCase {
796766
func testInsertTokens() async throws {
797767
try await SkipUnless.sourcekitdHasSemanticTokensRequest()
798768

799-
#if os(Windows)
800-
// FIXME: Run when https://github.com/swiftlang/sourcekit-lsp/issues/1770 is fixed
801-
try XCTSkipIf(true, "https://github.com/swiftlang/sourcekit-lsp/issues/1770")
802-
#endif
803-
804769
let testClient = try await TestSourceKitLSPClient()
805770
let uri = DocumentURI(for: .swift)
806771
let positions = testClient.openDocument(
@@ -932,11 +897,6 @@ final class SemanticTokensTests: XCTestCase {
932897
func testArgumentLabels() async throws {
933898
try await SkipUnless.sourcekitdHasSemanticTokensRequest()
934899

935-
#if os(Windows)
936-
// FIXME: Run when https://github.com/swiftlang/sourcekit-lsp/issues/1770 is fixed
937-
try XCTSkipIf(true, "https://github.com/swiftlang/sourcekit-lsp/issues/1770")
938-
#endif
939-
940900
try await assertSemanticTokens(
941901
markedContents: """
942902
1️⃣func 2️⃣foo(3️⃣arg: 4️⃣Int) {}
@@ -957,11 +917,6 @@ final class SemanticTokensTests: XCTestCase {
957917
func testFunctionDeclarationWithFirstAndSecondName() async throws {
958918
try await SkipUnless.sourcekitdHasSemanticTokensRequest()
959919

960-
#if os(Windows)
961-
// FIXME: Run when https://github.com/swiftlang/sourcekit-lsp/issues/1770 is fixed
962-
try XCTSkipIf(true, "https://github.com/swiftlang/sourcekit-lsp/issues/1770")
963-
#endif
964-
965920
try await assertSemanticTokens(
966921
markedContents: """
967922
1️⃣func 2️⃣foo(3️⃣arg 4️⃣internalName: 5️⃣Int) {}

Tests/SourceKitLSPTests/SwiftInterfaceTests.swift

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,6 @@ final class SwiftInterfaceTests: XCTestCase {
4343
}
4444

4545
func testDefinitionInSystemModuleInterface() async throws {
46-
#if os(Windows)
47-
// FIXME: Enable when https://github.com/swiftlang/sourcekit-lsp/issues/1771 is fixed
48-
try XCTSkipIf(true, "https://github.com/swiftlang/sourcekit-lsp/issues/1771")
49-
#endif
50-
5146
let project = try await IndexedSingleSwiftFileTestProject(
5247
"""
5348
public func libFunc() async {
@@ -140,11 +135,6 @@ final class SwiftInterfaceTests: XCTestCase {
140135
}
141136

142137
func testJumpToSynthesizedExtensionMethodInSystemModuleWithoutIndex() async throws {
143-
#if os(Windows)
144-
// FIXME: Enable when https://github.com/swiftlang/sourcekit-lsp/issues/1771 is fixed
145-
try XCTSkipIf(true, "https://github.com/swiftlang/sourcekit-lsp/issues/1771")
146-
#endif
147-
148138
let testClient = try await TestSourceKitLSPClient()
149139
let uri = DocumentURI(for: .swift)
150140

@@ -167,11 +157,6 @@ final class SwiftInterfaceTests: XCTestCase {
167157
}
168158

169159
func testJumpToSynthesizedExtensionMethodInSystemModuleWithIndex() async throws {
170-
#if os(Windows)
171-
// FIXME: Enable when https://github.com/swiftlang/sourcekit-lsp/issues/1771 is fixed
172-
try XCTSkipIf(true, "https://github.com/swiftlang/sourcekit-lsp/issues/1771")
173-
#endif
174-
175160
let project = try await IndexedSingleSwiftFileTestProject(
176161
"""
177162
func test(x: [String]) {

0 commit comments

Comments
 (0)