aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorMathias Fußenegger <mfussenegger@users.noreply.github.com>2023-10-14 09:47:20 +0200
committerGitHub <noreply@github.com>2023-10-14 09:47:20 +0200
commit712adacdf546fbaccd9f2134534889a3f6f36dbc (patch)
tree2884bc9dbd706d25392fc0da88a1a864a82f9157 /runtime/doc
parentee156ca60ede95c95160cb8dff0197d40cb1a491 (diff)
downloadrneovim-712adacdf546fbaccd9f2134534889a3f6f36dbc.tar.gz
rneovim-712adacdf546fbaccd9f2134534889a3f6f36dbc.tar.bz2
rneovim-712adacdf546fbaccd9f2134534889a3f6f36dbc.zip
refactor(lsp): make is_pull in lsp.diagnostic.get_namespace optional (#25156)
Follw up to https://github.com/neovim/neovim/commit/63b3408551561127f7845470eb51404bcd6f547b `is_pull` should be optional, otherwise it is an API change that introduces warnings in consumers. Also fixes the type annotation of `_client_pull_namespaces` where the key is a string.
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/lsp.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt
index 5d32a1b4d0..10e1a2c2c5 100644
--- a/runtime/doc/lsp.txt
+++ b/runtime/doc/lsp.txt
@@ -1356,8 +1356,8 @@ get_namespace({client_id}, {is_pull})
Parameters: ~
• {client_id} (integer) The id of the LSP client
- • {is_pull} (boolean) Whether the namespace is for a pull or push
- client
+ • {is_pull} boolean? Whether the namespace is for a pull or push
+ client. Defaults to push
*vim.lsp.diagnostic.on_diagnostic()*
on_diagnostic({_}, {result}, {ctx}, {config})