Commit 7828e2b
committed
Move workspace symbol implementation out of SourceKitLSPServer
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.
Fold QualifiedWorkspaceSymbolQuery.swift into the same file, since the
query type and its fuzzy matching helper are only used by the qualified
`workspace/symbol` search path.
Also remove `languageClass(for:)`, whose last caller went away when
language service instances became scoped per workspace.1 parent c86a006 commit 7828e2b
4 files changed
Lines changed: 566 additions & 546 deletions
File tree
- Sources/SourceKitLSP
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| |||
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
This file was deleted.
0 commit comments