Skip to content

Conversation

@ahoppen
Copy link
Member

@ahoppen ahoppen commented Sep 1, 2025

SyntacticTestIndex queries all language services for a document for its syntactic test items. This caused syntacticDocumentTests not implemented in DocumentationLanguageService to be logged for every Swift file in the project. Remove the default implementation of syntacticDocumentTests in LanguageService and instead provide an implementation that returns an empty array in DocumentationLanguageService.

While at it, also log the files for which unimplemented methods are called on LanguageService. This makes it easier to dermine why they are called.

…rvice`

`SyntacticTestIndex` queries all language services for a document for its syntactic test items. This caused `syntacticDocumentTests not implemented in DocumentationLanguageService` to be logged for every Swift file in the project. Remove the default implementation of `syntacticDocumentTests` in `LanguageService` and instead provide an implementation that returns an empty array in `DocumentationLanguageService`.

While at it, also log the files for which unimplemented methods are called on `LanguageService`. This makes it easier to dermine why they are called.
@ahoppen
Copy link
Member Author

ahoppen commented Sep 1, 2025

@swift-ci Please test

@ahoppen ahoppen enabled auto-merge September 1, 2025 17:51
@ahoppen ahoppen merged commit 183277a into swiftlang:main Sep 1, 2025
3 checks passed
@ahoppen ahoppen deleted the syntactic-tests-docc branch September 3, 2025 05:05
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