feat: cursor planning mode (#1289)

This commit is contained in:
yetone
2025-02-17 18:49:29 +08:00
committed by GitHub
parent b6ae4dfe7f
commit b21d2632d3
10 changed files with 429 additions and 31 deletions

View File

@@ -27,11 +27,12 @@ struct TemplateContext {
use_xml_format: bool,
ask: bool,
code_lang: String,
selected_files: Vec<SelectedFile>,
selected_files: Option<Vec<SelectedFile>>,
selected_code: Option<String>,
project_context: Option<String>,
diagnostics: Option<String>,
system_info: Option<String>,
model_name: Option<String>,
}
// Given the file name registered after add, the context table in Lua, resulted in a formatted
@@ -56,6 +57,7 @@ fn render(state: &State, template: &str, context: TemplateContext) -> LuaResult<
project_context => context.project_context,
diagnostics => context.diagnostics,
system_info => context.system_info,
model_name => context.model_name,
})
.map_err(LuaError::external)
.unwrap())