Skip to content

Commit ce1a453

Browse files
authored
Spec compliance: "workspaceSymbolProvider?: boolean | WorkspaceSymbolOptions" (#426)
1 parent bdc4060 commit ce1a453

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lsp-types/src/Language/LSP/Types/ServerCapabilities.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import Language.LSP.Types.SignatureHelp
3131
import Language.LSP.Types.TextDocument
3232
import Language.LSP.Types.TypeDefinition
3333
import Language.LSP.Types.Utils
34+
import Language.LSP.Types.WorkspaceSymbol
3435

3536
-- ---------------------------------------------------------------------
3637

@@ -126,7 +127,7 @@ data ServerCapabilities =
126127
-- @since 3.16.0
127128
, _semanticTokensProvider :: Maybe (SemanticTokensOptions |? SemanticTokensRegistrationOptions)
128129
-- | The server provides workspace symbol support.
129-
, _workspaceSymbolProvider :: Maybe Bool
130+
, _workspaceSymbolProvider :: Maybe (Bool |? WorkspaceSymbolOptions)
130131
-- | Workspace specific server capabilities
131132
, _workspace :: Maybe WorkspaceServerCapabilities
132133
-- | Experimental server capabilities.

lsp/src/Language/LSP/Server/Processing.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ inferServerCapabilities clientCaps o h =
201201
, _selectionRangeProvider = supportedBool STextDocumentSelectionRange
202202
, _callHierarchyProvider = supportedBool STextDocumentPrepareCallHierarchy
203203
, _semanticTokensProvider = semanticTokensProvider
204-
, _workspaceSymbolProvider = supported SWorkspaceSymbol
204+
, _workspaceSymbolProvider = supportedBool SWorkspaceSymbol
205205
, _workspace = Just workspace
206206
-- TODO: Add something for experimental
207207
, _experimental = Nothing :: Maybe Value

0 commit comments

Comments
 (0)