Commit Graph

28 Commits

Author SHA1 Message Date
Alex Hoppen
98cd30bb1c Apply exhaustive swift-format configuration from swift-syntax
Apply the exhaustive swift-format configuration from https://github.com/swiftlang/swift-syntax/pull/3117 to sourcekit-lsp. Also apply all automatic formattings.
2025-08-11 09:23:39 +02:00
Alex Hoppen
7f4f92e5bd Rename build system to build server in most cases
The term *build system* predated our wide-spread adoption of BSP for communicating between SourceKit-LSP to the build system and was never really the correct term anyway – ie. a `JSONCompilationDatabaseBuildSystem` never really sounded right. We now have a correct term for the communication layer between SourceKit-LSP: A build server. Rename most occurrences of *build system* to *build server* to reflect this. There are unfortunately a couple lingering instances of *build system* that we can’t change, most notably: `fallbackBuildSystem` in the config file, the `workspace/waitForBuildSystemUpdates` BSP extension request and the `synchronize-for-build-system-updates` experimental feature.
2025-08-02 08:45:01 +02:00
Matthew Bastien
b09c7d4d24 address review comments 2025-07-23 13:56:04 -04:00
Matthew Bastien
2f2879eb39 support function parameter and return type disambiguations in textDocument/doccDocumentation requests 2025-07-22 17:29:38 -04:00
Matthew Bastien
4238f76a60 use Language instead of String for DoccDocumentationError.unsupportedLanguage 2025-07-10 15:00:43 -04:00
Matthew Bastien
31d5dfcd2d add error message for unsupported languages 2025-07-10 11:22:54 -04:00
Matthew Bastien
09baabbe12 always try to render some documentation for Swift files 2025-07-10 10:25:08 -04:00
Anthony Latsis
052cdc6ee8 .swift-format: Enable ReturnVoidInsteadOfEmptyTuple 2025-06-23 19:47:25 +01:00
Alex Hoppen
f433f58448 Miscellaneous small cleanups 2025-04-23 18:54:45 +02:00
Alex Hoppen
d3c2d04f49 Use < for canonical sorting of catalog URLs
The exact sorting here should not matter and `<` is the standard choice here instead of `>=`, reducing distraction.
2025-04-23 18:54:45 +02:00
Alex Hoppen
024efc2fa1 Remove dependency from SourceKitLSP on swift-docc-symbolkit
This way all dependencies on the `docc` libraries are wrapped inside the `DocCDocumentation` module.
2025-04-23 18:54:45 +02:00
Matthew Bastien
2ae2e709b3 add LRUCache struct to SKUtilities 2025-04-17 13:46:01 -04:00
Matthew Bastien
c24f92d73e add documentation for certain functions 2025-04-16 15:13:04 -04:00
Matthew Bastien
9cdd1ac517 simplify logic for CheckedIndex.primaryDefinitionOrDeclarationOccurrence(ofDocCSymbolLink:) 2025-04-16 14:44:14 -04:00
Matthew Bastien
01517746ec simplify logic for DocCSymbolInformation.matches(_:) 2025-04-16 14:44:13 -04:00
Matthew Bastien
1de68c5298 add logging to DocCReferenceResolutionService 2025-04-16 14:44:13 -04:00
Matthew Bastien
f77e323ad6 update invalidation logic for DocC catalogs 2025-04-16 14:44:13 -04:00
Matthew Bastien
b9e93f7551 add logging of failure cases to DocCCatalogIndexManager 2025-04-16 14:44:13 -04:00
Matthew Bastien
c1895c3b9f add logging to BuildSystemIntegrationExtensions 2025-04-16 14:44:13 -04:00
Matthew Bastien
0ea0e00c55 use LinkCompletionTools to parse SwiftDocC symbol links 2025-04-16 14:44:13 -04:00
Matthew Bastien
8c15e27959 use a helper document in cursorInfo() 2025-04-16 14:44:12 -04:00
Matthew Bastien
909e63961e add missing copyright header 2025-04-16 14:44:12 -04:00
Matthew Bastien
f6f1cb33ea remove public access modifiers from package symbols 2025-04-16 14:44:12 -04:00
Matthew Bastien
1ca1441054 fix some review comments 2025-04-16 14:44:12 -04:00
Matthew Bastien
0adaf2581f more robust searching for DocC catalogs 2025-04-16 14:44:12 -04:00
Matthew Bastien
a8eae3c6d8 remove protocols from DocCDocumentation module 2025-04-16 14:44:12 -04:00
Matthew Bastien
c1a6e65efd add CMake build to DocCDocumentation module 2025-04-16 14:44:11 -04:00
Matthew Bastien
49b3f531eb move SwiftDocC related functionality into its own module 2025-04-16 14:44:11 -04:00