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
3131import Language.LSP.Types.TextDocument
3232import Language.LSP.Types.TypeDefinition
3333import 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.
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments