mirror of
https://github.com/apple/sourcekit-lsp.git
synced 2026-03-02 18:23:24 +01:00
- Add DefinitionLocations.swift to CMakeLists.txt - Add proper documentation comments to functions in DefinitionLocations.swift - Make indexToLSPLocation private since it's only used within the file - Revert unrelated comment changes in InlayHintResolve.swift - Use .only instead of .first in InlayHintResolve to avoid ambiguous types - Refactor TypeDefinition.swift to use cleaner control flow with guard/else - Add test for jumping to generated interface (String)
57 lines
1.6 KiB
CMake
57 lines
1.6 KiB
CMake
|
|
add_library(SourceKitLSP STATIC
|
|
CapabilityRegistry.swift
|
|
DocumentManager.swift
|
|
DocumentSnapshot+FromFileContents.swift
|
|
DocumentSnapshot+PositionConversions.swift
|
|
DefinitionLocations.swift
|
|
GeneratedInterfaceDocumentURLData.swift
|
|
Hooks.swift
|
|
IndexProgressManager.swift
|
|
IndexStoreDB+MainFilesProvider.swift
|
|
LanguageService.swift
|
|
LanguageServiceRegistry.swift
|
|
LogMessageNotification+representingStructureUsingEmojiPrefixIfNecessary.swift
|
|
MacroExpansionReferenceDocumentURLData.swift
|
|
MessageHandlingDependencyTracker.swift
|
|
OnDiskDocumentManager.swift
|
|
PlaygroundDiscovery.swift
|
|
ReferenceDocumentURL.swift
|
|
Rename.swift
|
|
SemanticTokensLegend+SourceKitLSPLegend.swift
|
|
SharedWorkDoneProgressManager.swift
|
|
SourceKitIndexDelegate.swift
|
|
SourceKitLSPCommandMetadata.swift
|
|
SourceKitLSPServer.swift
|
|
SymbolLocation+DocumentURI.swift
|
|
SyntacticIndex.swift
|
|
TestDiscovery.swift
|
|
TextEdit+IsNoop.swift
|
|
Workspace.swift
|
|
)
|
|
set_target_properties(SourceKitLSP PROPERTIES
|
|
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY}
|
|
)
|
|
target_link_libraries(SourceKitLSP PUBLIC
|
|
SwiftToolsProtocols::BuildServerProtocol
|
|
BuildServerIntegration
|
|
SwiftToolsProtocols::LanguageServerProtocol
|
|
LanguageServerProtocolExtensions
|
|
SemanticIndex
|
|
SKOptions
|
|
SKUtilities
|
|
SwiftExtensions
|
|
SwiftToolsProtocols::ToolsProtocolsSwiftExtensions
|
|
ToolchainRegistry
|
|
IndexStoreDB
|
|
SwiftSyntax::SwiftSyntax
|
|
)
|
|
target_link_libraries(SourceKitLSP PRIVATE
|
|
SwiftToolsProtocols::LanguageServerProtocolTransport
|
|
SwiftToolsProtocols::SKLogging
|
|
SourceKitD
|
|
TSCExtensions
|
|
$<$<NOT:$<PLATFORM_ID:Darwin>>:FoundationXML>
|
|
)
|
|
|