chore: remove dead code and commented out blocks (#2611)
This commit is contained in:
@@ -75,11 +75,6 @@ function StreamParser:getStatus()
|
||||
}
|
||||
end
|
||||
|
||||
-- 辅助函数:去除字符串首尾空白(保留以备后用)
|
||||
-- local function trim(s)
|
||||
-- return s:match("^%s*(.-)%s*$")
|
||||
-- end
|
||||
|
||||
-- 辅助函数:检查字符是否为空白字符
|
||||
local function isWhitespace(char) return char == " " or char == "\t" or char == "\n" or char == "\r" end
|
||||
|
||||
|
||||
@@ -238,7 +238,6 @@ When you're done, provide a clear and concise summary of what you found.]]):gsub
|
||||
end
|
||||
end
|
||||
end
|
||||
-- if session_ctx.on_messages_add then session_ctx.on_messages_add(msgs) end
|
||||
end,
|
||||
session_ctx = session_ctx,
|
||||
on_start = session_ctx.on_start,
|
||||
|
||||
@@ -589,7 +589,6 @@ For example:
|
||||
return { { line_, Highlights.TO_BE_DELETED_WITHOUT_STRIKETHROUGH } }
|
||||
end)
|
||||
:totable()
|
||||
-- local extmark_line = math.max(0, start_line - 2)
|
||||
local end_row = start_line + #diff_block.new_lines - 1
|
||||
local delete_extmark_id =
|
||||
vim.api.nvim_buf_set_extmark(bufnr, NAMESPACE, math.min(math.max(end_row - 1, 0), line_count - 1), 0, {
|
||||
|
||||
@@ -8,7 +8,6 @@ M.name = "str_replace"
|
||||
M.description =
|
||||
"The str_replace tool allows you to replace a specific string in a file with a new string. This is used for making precise edits."
|
||||
|
||||
-- function M.enabled() return Config.provider:match("ollama") ~= nil end
|
||||
function M.enabled() return false end
|
||||
|
||||
---@type AvanteLLMToolParam
|
||||
|
||||
Reference in New Issue
Block a user