Skip to content

Commit

Permalink
feat: include diagnostics in suggestion (#1093)
Browse files Browse the repository at this point in the history
  • Loading branch information
yetone authored Jan 16, 2025
1 parent 1660ca5 commit ac6bf35
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/avante/suggestion.lua
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,12 @@ L5: pass
},
}

local diagnostics = Utils.get_diagnostics(bufnr)

Llm.stream({
provider = provider,
ask = true,
diagnostics = vim.json.encode(diagnostics),
selected_files = { { content = code_content, file_type = filetype, path = "" } },
code_lang = filetype,
history_messages = history_messages,
Expand Down

0 comments on commit ac6bf35

Please sign in to comment.