mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
fix(lsp): avoid nil workspace/symbol query (#17107)
This commit is contained in:
parent
a0201b6ed3
commit
7085e5b0c8
@ -447,6 +447,9 @@ end
|
||||
---@param query (string, optional)
|
||||
function M.workspace_symbol(query)
|
||||
query = query or npcall(vfn.input, "Query: ")
|
||||
if query == nil then
|
||||
return
|
||||
end
|
||||
local params = {query = query}
|
||||
request('workspace/symbol', params)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user