mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-04 09:44:31 +00:00 
			
		
		
		
	fix(lsp): actually send diagnostic-tags back to the server
Fixes #27318
This commit is contained in:
		
				
					committed by
					
						
						Lewis Russell
					
				
			
			
				
	
			
			
			
						parent
						
							8149bd089e
						
					
				
				
					commit
					3e016fa8d4
				
			@@ -136,7 +136,7 @@ end
 | 
			
		||||
 | 
			
		||||
--- @param diagnostic vim.Diagnostic
 | 
			
		||||
--- @return lsp.DiagnosticTag[]?
 | 
			
		||||
local function tags_vim_to_vim(diagnostic)
 | 
			
		||||
local function tags_vim_to_lsp(diagnostic)
 | 
			
		||||
  if not diagnostic._tags then
 | 
			
		||||
    return
 | 
			
		||||
  end
 | 
			
		||||
@@ -173,7 +173,7 @@ local function diagnostic_vim_to_lsp(diagnostics)
 | 
			
		||||
      message = diagnostic.message,
 | 
			
		||||
      source = diagnostic.source,
 | 
			
		||||
      code = diagnostic.code,
 | 
			
		||||
      tags = tags_vim_to_vim(diagnostics),
 | 
			
		||||
      tags = tags_vim_to_lsp(diagnostic),
 | 
			
		||||
    }, diagnostic.user_data and (diagnostic.user_data.lsp or {}) or {})
 | 
			
		||||
  end, diagnostics)
 | 
			
		||||
end
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user