Skip to content

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Aug 11, 2025

Continuing the effort started in #2228.

@ahoppen
Copy link
Member Author

ahoppen commented Aug 11, 2025

@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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// 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

} ?? []
})
self.syntacticTestIndex = SyntacticTestIndex(
languageServiceRegistry: sourceKitLSPServer?.languageServiceRegistry ?? LanguageServiceRegistry(),
Copy link
Contributor

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 🤔

Copy link
Member Author

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.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That works too 👍

@ahoppen ahoppen force-pushed the move-swiftlanguageservice branch 2 times, most recently from 134b99b to e5908a7 Compare August 11, 2025 19:03
@ahoppen
Copy link
Member Author

ahoppen commented Aug 11, 2025

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Aug 11, 2025

@swift-ci Please test Windows

@ahoppen
Copy link
Member Author

ahoppen commented Aug 11, 2025

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Aug 11, 2025

@swift-ci Please test Windows

@ahoppen ahoppen force-pushed the move-swiftlanguageservice branch from 37f9610 to dfe1046 Compare August 12, 2025 05:53
@ahoppen
Copy link
Member Author

ahoppen commented Aug 12, 2025

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Aug 12, 2025

@swift-ci Please test Windows

@ahoppen ahoppen force-pushed the move-swiftlanguageservice branch from dfe1046 to f60ec7b Compare August 12, 2025 09:34
@ahoppen
Copy link
Member Author

ahoppen commented Aug 12, 2025

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Aug 12, 2025

@swift-ci Please test Windows

1 similar comment
@ahoppen
Copy link
Member Author

ahoppen commented Aug 13, 2025

@swift-ci Please test Windows

@ahoppen
Copy link
Member Author

ahoppen commented Aug 13, 2025

@swift-ci Please test macOS

@ahoppen
Copy link
Member Author

ahoppen commented Aug 13, 2025

@swift-ci Please test Windows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants