mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	fix(lsp): call show_document with correct args
Closes https://github.com/neovim/neovim/issues/21177
This commit is contained in:
		@@ -579,7 +579,10 @@ M['window/showDocument'] = function(_, result, ctx, _)
 | 
			
		||||
    range = result.selection,
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  local success = util.show_document(location, client.offset_encoding, true, result.takeFocus)
 | 
			
		||||
  local success = util.show_document(location, client.offset_encoding, {
 | 
			
		||||
    reuse_win = true,
 | 
			
		||||
    focus = result.takeFocus,
 | 
			
		||||
  })
 | 
			
		||||
  return { success = success or false }
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user