Skip to content

Commit c852db9

Browse files
committed
Move workspace symbol implementation out of SourceKitLSPServer.swift
The `workspace/symbol`, `workspace/symbolNames`, `workspace/symbolInfo` and `workspaceSymbol/resolve` implementations made up roughly 470 lines of SourceKitLSPServer.swift. Move them to WorkspaceSymbols.swift and leave each request handler in SourceKitLSPServer.swift as a single statement that forwards to its implementation. Also remove `languageClass(for:)`, whose last caller went away when language service instances became scoped per workspace.
1 parent c86a006 commit c852db9

3 files changed

Lines changed: 509 additions & 477 deletions

File tree

Sources/SourceKitLSP/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ add_library(SourceKitLSP STATIC
3232
TestDiscovery.swift
3333
TextEdit+IsNoop.swift
3434
Workspace.swift
35+
WorkspaceSymbols.swift
3536
)
3637
set_target_properties(SourceKitLSP PROPERTIES
3738
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY}

0 commit comments

Comments
 (0)