feat: add auto_check_diagnostics config (#2189)
This commit is contained in:
@@ -425,6 +425,7 @@ M._defaults = {
|
|||||||
auto_focus_on_diff_view = false,
|
auto_focus_on_diff_view = false,
|
||||||
---@type boolean | string[] -- true: auto-approve all tools, false: normal prompts, string[]: auto-approve specific tools by name
|
---@type boolean | string[] -- true: auto-approve all tools, false: normal prompts, string[]: auto-approve specific tools by name
|
||||||
auto_approve_tool_permissions = false, -- Default: show permission prompts for all tools
|
auto_approve_tool_permissions = false, -- Default: show permission prompts for all tools
|
||||||
|
auto_check_diagnostics = true,
|
||||||
},
|
},
|
||||||
history = {
|
history = {
|
||||||
max_tokens = 4096,
|
max_tokens = 4096,
|
||||||
|
|||||||
@@ -2291,7 +2291,7 @@ function Sidebar:get_history_messages_for_api(opts)
|
|||||||
is_dummy = true,
|
is_dummy = true,
|
||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
if last_modified_files[uniformed_path] == idx then
|
if last_modified_files[uniformed_path] == idx and Config.behaviour.auto_check_diagnostics then
|
||||||
local diagnostics = Utils.lsp.get_diagnostics_from_filepath(path)
|
local diagnostics = Utils.lsp.get_diagnostics_from_filepath(path)
|
||||||
history_messages = vim.list_extend(history_messages, {
|
history_messages = vim.list_extend(history_messages, {
|
||||||
HistoryMessage:new({
|
HistoryMessage:new({
|
||||||
|
|||||||
Reference in New Issue
Block a user