fix(lsp): avoid nil workspace/symbol query (#17107)

This commit is contained in:
Daniel Steinberg 2022-01-16 02:08:35 -05:00 committed by GitHub
parent a0201b6ed3
commit 7085e5b0c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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