mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	fix(lsp): wrong iterator in registerCapability handler (#24971)
This commit is contained in:
		| @@ -112,7 +112,7 @@ M[ms.client_registerCapability] = function(_, result, ctx) | |||||||
|   local client = vim.lsp.get_client_by_id(client_id) |   local client = vim.lsp.get_client_by_id(client_id) | ||||||
|  |  | ||||||
|   client.dynamic_capabilities:register(result.registrations) |   client.dynamic_capabilities:register(result.registrations) | ||||||
|   for bufnr, _ in ipairs(client.attached_buffers) do |   for bufnr, _ in pairs(client.attached_buffers) do | ||||||
|     vim.lsp._set_defaults(client, bufnr) |     vim.lsp._set_defaults(client, bufnr) | ||||||
|   end |   end | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 TheBlob42
					TheBlob42