-
Notifications
You must be signed in to change notification settings - Fork 320
Move SwiftLanguageService
into its own module
#2234
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
base: main
Are you sure you want to change the base?
Conversation
@swift-ci Please test |
@@ -171,6 +181,13 @@ package protocol LanguageService: AnyObject, Sendable { | |||
#endif | |||
func symbolInfo(_ request: SymbolInfoRequest) async throws -> [SymbolDetails] | |||
|
|||
/// Return the symbol graph at the given location for the contents of the document as they are on-disk (opposed ot the |
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.
/// Return the symbol graph at the given location for the contents of the document as they are on-disk (opposed ot the | |
/// Return the symbol graph at the given location for the contents of the document as they are on-disk (opposed to the |
Sources/SourceKitLSP/Workspace.swift
Outdated
} ?? [] | ||
}) | ||
self.syntacticTestIndex = SyntacticTestIndex( | ||
languageServiceRegistry: sourceKitLSPServer?.languageServiceRegistry ?? LanguageServiceRegistry(), |
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.
IIUC this case only happens during tests, but it makes it seem like SourceKitLSPServer
shouldn't be the owner of LanguageServiceRegistry
🤔
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.
There’s no reason why sourceKitLSPServer
needs to be an optional here anyway. Updating it so that we always have a SourceKitLSPServer
and then we don’t need the fallback here.
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 works too 👍
134b99b
to
e5908a7
Compare
@swift-ci Please test |
@swift-ci Please test Windows |
e5908a7
to
37f9610
Compare
@swift-ci Please test |
@swift-ci Please test Windows |
37f9610
to
dfe1046
Compare
@swift-ci Please test |
@swift-ci Please test Windows |
dfe1046
to
f60ec7b
Compare
@swift-ci Please test |
@swift-ci Please test Windows |
Continuing the effort started in #2228.