mirror of
https://github.com/neovim/neovim.git
synced 2025-11-07 19:24:25 +00:00
fix(lsp): avoid nil workspace/symbol query (#17107)
This commit is contained in:
@@ -447,6 +447,9 @@ end
|
|||||||
---@param query (string, optional)
|
---@param query (string, optional)
|
||||||
function M.workspace_symbol(query)
|
function M.workspace_symbol(query)
|
||||||
query = query or npcall(vfn.input, "Query: ")
|
query = query or npcall(vfn.input, "Query: ")
|
||||||
|
if query == nil then
|
||||||
|
return
|
||||||
|
end
|
||||||
local params = {query = query}
|
local params = {query = query}
|
||||||
request('workspace/symbol', params)
|
request('workspace/symbol', params)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user