update PromptPriority to accomodate for both Mandatory and Ordered prompts

This commit is contained in:
KCaverly 2023-10-18 15:56:39 -04:00
parent aa1825681c
commit 473067db31
4 changed files with 96 additions and 29 deletions

View file

@ -30,8 +30,6 @@ impl PromptTemplate for FileContext {
writeln!(prompt, "```{language_name}").unwrap();
if let Some(buffer) = &args.buffer {
let mut content = String::new();
if let Some(selected_range) = &args.selected_range {
let start = selected_range.start.to_offset(buffer);
let end = selected_range.end.to_offset(buffer);