swiftlang / sourcekit-lsp

Language Server Protocol implementation for Swift and C-based languages
Apache License 2.0
3.34k stars 280 forks source link

Support `workspace/diagnostic/refresh` request from `TestSourceKitLSPClient` #1764

Closed ahoppen closed 1 month ago

ahoppen commented 1 month ago

Currently, we return a methodNotFound error when we get a diagnostic refresh request from SourceKit-LSP. This doesn’t do any harm but draws the attention when reading test logs, despite being the expected result. Clean up that output by returning a proper response.

ahoppen commented 1 month ago

@swift-ci Please test