From 838d4a9eb8f7c08bc00cf3107696ec4ca5efa6f2 Mon Sep 17 00:00:00 2001 From: Paul LeMarquand Date: Thu, 11 Jul 2024 09:46:50 -0400 Subject: [PATCH] Report workspace/triggerReindex server capability Report to clients that the server supports the `workspace/triggerReindex` request. This lets clients expose this functionality only if SourceKit-LSP is configured to support it. --- Sources/SourceKitLSP/SourceKitLSPServer.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/SourceKitLSP/SourceKitLSPServer.swift b/Sources/SourceKitLSP/SourceKitLSPServer.swift index c6c75d82f..ad5d24f78 100644 --- a/Sources/SourceKitLSP/SourceKitLSPServer.swift +++ b/Sources/SourceKitLSP/SourceKitLSPServer.swift @@ -1120,6 +1120,7 @@ extension SourceKitLSPServer { experimental: .dictionary([ "workspace/tests": .dictionary(["version": .int(2)]), "textDocument/tests": .dictionary(["version": .int(2)]), + "workspace/triggerReindex": .dictionary(["version": .int(1)]), ]) ) }