File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
lsp-types/src/Language/LSP/Types
lsp/src/Language/LSP/Server Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ import Language.LSP.Types.SignatureHelp
31
31
import Language.LSP.Types.TextDocument
32
32
import Language.LSP.Types.TypeDefinition
33
33
import Language.LSP.Types.Utils
34
+ import Language.LSP.Types.WorkspaceSymbol
34
35
35
36
-- ---------------------------------------------------------------------
36
37
@@ -126,7 +127,7 @@ data ServerCapabilities =
126
127
-- @since 3.16.0
127
128
, _semanticTokensProvider :: Maybe (SemanticTokensOptions |? SemanticTokensRegistrationOptions )
128
129
-- | The server provides workspace symbol support.
129
- , _workspaceSymbolProvider :: Maybe Bool
130
+ , _workspaceSymbolProvider :: Maybe ( Bool |? WorkspaceSymbolOptions )
130
131
-- | Workspace specific server capabilities
131
132
, _workspace :: Maybe WorkspaceServerCapabilities
132
133
-- | Experimental server capabilities.
Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ inferServerCapabilities clientCaps o h =
201
201
, _selectionRangeProvider = supportedBool STextDocumentSelectionRange
202
202
, _callHierarchyProvider = supportedBool STextDocumentPrepareCallHierarchy
203
203
, _semanticTokensProvider = semanticTokensProvider
204
- , _workspaceSymbolProvider = supported SWorkspaceSymbol
204
+ , _workspaceSymbolProvider = supportedBool SWorkspaceSymbol
205
205
, _workspace = Just workspace
206
206
-- TODO: Add something for experimental
207
207
, _experimental = Nothing :: Maybe Value
You can’t perform that action at this time.
0 commit comments