fix(lsp): improve dynamic registration handling #37161

Work on #37166 

- Dynamic Registration Tracking via Provider
- Supports_Method
    - Multiple Registrations
    - RegistrationOptions may dictate support for a method
This commit is contained in:
Tristan Knight
2026-01-02 06:46:13 +00:00
committed by GitHub
parent a3c56d1002
commit ed562c296a
5 changed files with 202 additions and 43 deletions

View File

@@ -35,13 +35,6 @@ local changetracking = lsp._changetracking
---@nodoc
lsp.rpc_response_error = lsp.rpc.rpc_response_error
lsp._resolve_to_request = {
['codeAction/resolve'] = 'textDocument/codeAction',
['codeLens/resolve'] = 'textDocument/codeLens',
['documentLink/resolve'] = 'textDocument/documentLink',
['inlayHint/resolve'] = 'textDocument/inlayHint',
}
-- TODO improve handling of scratch buffers with LSP attached.
--- Called by the client when trying to call a method that's not