mirror of
https://github.com/neovim/neovim
synced 2025-07-16 09:11:51 +00:00
fix(lsp): handle nil root_dir in health check (#29007)
The root directory could show up as something like: Root directory: ~/path/to/cwd/v:null Despite being `nil`
This commit is contained in:
committed by
GitHub
parent
520c2657bb
commit
f03b1622ad
@ -182,7 +182,7 @@ local validate = vim.validate
|
||||
--- It can be `null` if the client supports workspace folders but none are
|
||||
--- configured.
|
||||
--- @field workspace_folders lsp.WorkspaceFolder[]?
|
||||
--- @field root_dir string
|
||||
--- @field root_dir string?
|
||||
---
|
||||
--- @field attached_buffers table<integer,true>
|
||||
---
|
||||
@ -470,7 +470,6 @@ function Client.create(config)
|
||||
_on_exit_cbs = ensure_list(config.on_exit),
|
||||
_on_attach_cbs = ensure_list(config.on_attach),
|
||||
_on_error_cb = config.on_error,
|
||||
_root_dir = config.root_dir,
|
||||
_trace = get_trace(config.trace),
|
||||
|
||||
--- Contains $/progress report messages.
|
||||
|
Reference in New Issue
Block a user