assistant2: Fix issue with included directories in context picker (#27833)
Release Notes: - N/A
This commit is contained in:
parent
5509e0141a
commit
d1db6d6782
2 changed files with 15 additions and 13 deletions
|
@ -321,10 +321,7 @@ pub fn render_file_context_entry(
|
|||
|
||||
let added = context_store.upgrade().and_then(|context_store| {
|
||||
if is_directory {
|
||||
context_store
|
||||
.read(cx)
|
||||
.includes_directory(path)
|
||||
.map(FileInclusion::Direct)
|
||||
context_store.read(cx).includes_directory(path)
|
||||
} else {
|
||||
context_store.read(cx).will_include_file_path(path, cx)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue