mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-03 17:24:29 +00:00 
			
		
		
		
	fix(lsp): avoid nil workspace/symbol query (#17107)
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user