feat: include diagnostics in suggestion (#1093)
This commit is contained in:
		
							parent
							
								
									1660ca5c51
								
							
						
					
					
						commit
						ac6bf35616
					
				@ -130,9 +130,12 @@ L5:    pass
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  local diagnostics = Utils.get_diagnostics(bufnr)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  Llm.stream({
 | 
					  Llm.stream({
 | 
				
			||||||
    provider = provider,
 | 
					    provider = provider,
 | 
				
			||||||
    ask = true,
 | 
					    ask = true,
 | 
				
			||||||
 | 
					    diagnostics = vim.json.encode(diagnostics),
 | 
				
			||||||
    selected_files = { { content = code_content, file_type = filetype, path = "" } },
 | 
					    selected_files = { { content = code_content, file_type = filetype, path = "" } },
 | 
				
			||||||
    code_lang = filetype,
 | 
					    code_lang = filetype,
 | 
				
			||||||
    history_messages = history_messages,
 | 
					    history_messages = history_messages,
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user