Skip to content

Commit bba47a4

Browse files
committed
Update CMake Build to Include SwiftSyntax
1 parent fdae671 commit bba47a4

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ find_package(LLBuild QUIET)
2121
find_package(ArgumentParser CONFIG REQUIRED)
2222
find_package(SwiftCollections QUIET)
2323
find_package(SwiftSystem CONFIG REQUIRED)
24+
find_package(SwiftSyntax CONFIG REQUIRED)
2425

2526
include(SwiftSupport)
2627

Sources/SourceKitLSP/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ target_link_libraries(SourceKitLSP PUBLIC
4141
SKCore
4242
SKSwiftPMWorkspace
4343
SourceKitD
44+
SwiftSyntax::SwiftBasicFormat
45+
SwiftSyntax::SwiftParser
46+
SwiftSyntax::SwiftDiagnostics
47+
SwiftSyntax::SwiftSyntax
4448
TSCUtility)
4549
target_link_libraries(SourceKitLSP PRIVATE
4650
$<$<NOT:$<PLATFORM_ID:Darwin>>:FoundationXML>)
51+

Tests/SourceKitLSPTests/SemanticTokensTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ final class SemanticTokensTests: XCTestCase {
496496
"""
497497
let tokens = openAndPerformSemanticTokensRequest(text: text)
498498
XCTAssertEqual(tokens, [
499-
Token(line: 0, utf16index: 0, length: 5, kind: .modifier),
499+
Token(line: 0, utf16index: 0, length: 5, kind: .keyword),
500500
Token(line: 0, utf16index: 6, length: 8, kind: .keyword),
501501
Token(line: 0, utf16index: 15, length: 2, kind: .operator),
502502
Token(line: 0, utf16index: 19, length: 20, kind: .identifier),

0 commit comments

Comments
 (0)