mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-04 01:34:25 +00:00 
			
		
		
		
	fix(lsp) type annotation for vim.lsp.Config.cmd #34574
				
					
				
			The type annotation for `vim.lsp.ClientConfig.cmd` was changed,
but the update was not propagated to `vim.lsp.Config`.
(cherry picked from commit 150513a163)
			
			
This commit is contained in:
		
				
					committed by
					
						
						github-actions[bot]
					
				
			
			
				
	
			
			
			
						parent
						
							4303337c77
						
					
				
				
					commit
					1976ca68b5
				
			@@ -714,7 +714,7 @@ Lua module: vim.lsp                                                 *lsp-core*
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    Fields: ~
 | 
			
		||||
      • {cmd}?           (`string[]|fun(dispatchers: vim.lsp.rpc.Dispatchers): vim.lsp.rpc.PublicClient`)
 | 
			
		||||
      • {cmd}?           (`string[]|fun(dispatchers: vim.lsp.rpc.Dispatchers, config: vim.lsp.ClientConfig): vim.lsp.rpc.PublicClient`)
 | 
			
		||||
                         See `cmd` in |vim.lsp.ClientConfig|. See also
 | 
			
		||||
                         `reuse_client` to dynamically decide (per-buffer)
 | 
			
		||||
                         when `cmd` should be re-invoked.
 | 
			
		||||
 
 | 
			
		||||
@@ -276,7 +276,7 @@ end
 | 
			
		||||
---
 | 
			
		||||
--- See `cmd` in [vim.lsp.ClientConfig].
 | 
			
		||||
--- See also `reuse_client` to dynamically decide (per-buffer) when `cmd` should be re-invoked.
 | 
			
		||||
--- @field cmd? string[]|fun(dispatchers: vim.lsp.rpc.Dispatchers): vim.lsp.rpc.PublicClient
 | 
			
		||||
--- @field cmd? string[]|fun(dispatchers: vim.lsp.rpc.Dispatchers, config: vim.lsp.ClientConfig): vim.lsp.rpc.PublicClient
 | 
			
		||||
---
 | 
			
		||||
--- Filetypes the client will attach to, if activated by `vim.lsp.enable()`. If not provided, the
 | 
			
		||||
--- client will attach to all filetypes.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user