Skip to content

Commit de5cbaf

Browse files
committed
Add a comment
1 parent 6dea030 commit de5cbaf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/agent/src/outline.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ pub async fn get_buffer_content_or_outline(
4444
.collect::<Vec<_>>()
4545
})?;
4646

47+
// If no outline exists, fall back to first 1KB so the agent has some context
4748
if outline_items.is_empty() {
4849
let text = buffer.read_with(cx, |buffer, _| {
4950
let snapshot = buffer.snapshot();

0 commit comments

Comments
 (0)