Respect project-specific settings for copilot

This commit is contained in:
Max Brunsfeld 2023-05-31 14:42:15 -07:00
parent eeba72d775
commit a2ab7c9eb9
6 changed files with 56 additions and 40 deletions

View file

@ -679,7 +679,7 @@ impl Worktree {
}
pub fn root_file(&self, cx: &mut ModelContext<Self>) -> Option<File> {
let entry = self.entry_for_path("")?;
let entry = self.root_entry()?;
Some(File {
worktree: cx.handle(),
path: entry.path.clone(),