From 310891108bd6ce00a2c4930c3ff6bf1135f6df44 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 3c8148bb6..5e325dd36 100644 --- a/Sources/SourceKitLSP/SourceKitLSPServer.swift +++ b/Sources/SourceKitLSP/SourceKitLSPServer.swift @@ -1104,6 +1104,7 @@ extension SourceKitLSPServer { experimental: .dictionary([ "workspace/tests": .dictionary(["version": .int(2)]), "textDocument/tests": .dictionary(["version": .int(2)]), + "workspace/triggerReindex": .dictionary(["version": .int(1)]), ]) ) }