-
Notifications
You must be signed in to change notification settings - Fork 320
Move ClangLanguageService to its own module #2228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@swift-ci Please test |
c4d423d
to
6e6fc85
Compare
@swift-ci Please test |
@swift-ci Please test Windows |
@@ -4,6 +4,7 @@ add_executable(sourcekit-lsp | |||
target_link_libraries(sourcekit-lsp PRIVATE | |||
BuildServerIntegration | |||
Diagnose | |||
InProcessClient | |||
LanguageServerProtocol | |||
LanguageServerProtocolExtensions | |||
LanguageServerProtocolJSONRPC |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure how this worked before, but we're apparently missing a DocCDocumentation here (we have a package import DocCDocumentation
in Sources/SourceKitLSP/Workspace.swift
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's because we can't build DocC on Windows. All usages of DocC should be guarded by #if
. Maybe I missed a #if
now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I forgot about that :(
6e6fc85
to
634ec92
Compare
@swift-ci Please test |
@swift-ci Please test Windows |
I’m working on moving each of the three language services to its own module, ie. having a separate module for
ClangLanguageService
,SwiftLanguageService
, andDocumentationLanguageService
. This should separate concerns for the three languages a little better instead of having them all in the singleSourceKitLSP
module.The overall design is that the modules for the language services depend on the
SourceKitLSP
module, so the language services need to be registered dynamically in aLanguageServiceRegistry
. Other than that, a bit of code needed to be moved around but the changes should all be NFCs.https://github.com/ahoppen/sourcekit-lsp/tree/split-language-services contains the result of the final split. Getting there will probably take another couple of PRs.