assistant: Add diagnostics
slash command (#12998)
This adds a `diagnostics` command to the assistant which allows to inject compile errors/warnings into the context. Release Notes: - N/A
This commit is contained in:
parent
bf03f66d02
commit
0d8e6e6b12
12 changed files with 502 additions and 47 deletions
|
@ -1199,7 +1199,7 @@ impl ProjectPanel {
|
|||
if let Some(worktree) = worktree {
|
||||
let worktree = worktree.read(cx);
|
||||
let worktree_id = worktree.id();
|
||||
if let Some(last_entry) = worktree.entries(true).last() {
|
||||
if let Some(last_entry) = worktree.entries(true, 0).last() {
|
||||
self.selection = Some(SelectedEntry {
|
||||
worktree_id,
|
||||
entry_id: last_entry.id,
|
||||
|
@ -1578,7 +1578,7 @@ impl ProjectPanel {
|
|||
}
|
||||
|
||||
let mut visible_worktree_entries = Vec::new();
|
||||
let mut entry_iter = snapshot.entries(true);
|
||||
let mut entry_iter = snapshot.entries(true, 0);
|
||||
while let Some(entry) = entry_iter.entry() {
|
||||
if auto_collapse_dirs
|
||||
&& entry.kind.is_dir()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue