File tree Expand file tree Collapse file tree
lsp-types/src/Language/LSP/Protocol
lsp/src/Language/LSP/Server Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -298,9 +298,10 @@ dynamicRegistrationSupported m caps = fromMaybe False $ case m of
298298 SMethod_TextDocumentMoniker -> caps ^? dyn m
299299 SMethod_TextDocumentPrepareTypeHierarchy -> caps ^? dyn m
300300 SMethod_TextDocumentDiagnostic -> caps ^? dyn m
301- -- semantic tokens is messed up due to it having you register with an otherwise non-existent method
302- -- SMethod_TextDocumentSemanticTokens -> capDyn $ clientCaps ^? L.textDocument . _Just . L.semanticTokens . _Just
303- -- Notebook document methods alway support dynamic registration, it seems?
301+ SMethod_TextDocumentSemanticTokensFull -> caps ^? dyn m
302+ SMethod_TextDocumentSemanticTokensFullDelta -> caps ^? dyn m
303+ SMethod_TextDocumentSemanticTokensRange -> caps ^? dyn m
304+ -- Notebook document methods always support dynamic registration, it seems?
304305 _ -> Just False
305306 where
306307 dyn :: L. HasDynamicRegistration (ClientCapability m ) (Maybe Bool ) => SMethod m -> Traversal' ClientCapabilities Bool
Original file line number Diff line number Diff line change @@ -620,7 +620,7 @@ trySendRegistration logger method regOpts = do
620620
621621 pure (Just $ RegistrationToken method regId)
622622 else do
623- logger <& CantRegister SMethod_WorkspaceDidChangeConfiguration `WithSeverity ` Warning
623+ logger <& CantRegister method `WithSeverity ` Warning
624624 pure Nothing
625625
626626{- | Sends a @client/unregisterCapability@ request and removes the handler
You can’t perform that action at this time.
0 commit comments