assistant2: Don't suggest thread context for inline assist without a ThreadStore (#23506)

This PR makes it so we don't suggest threads as context in the inline
assist when we don't have a `ThreadStore` to pull from.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers
2025-01-22 23:47:56 +00:00
committed by GitHub
parent ecf70db7f0
commit 82cee9e9a4
4 changed files with 15 additions and 6 deletions
+2 -2
View File
@@ -24,7 +24,7 @@ pub enum ContextPill {
}
impl ContextPill {
pub fn new_added(
pub fn added(
context: ContextSnapshot,
dupe_name: bool,
focused: bool,
@@ -39,7 +39,7 @@ impl ContextPill {
}
}
pub fn new_suggested(
pub fn suggested(
name: SharedString,
icon_path: Option<SharedString>,
kind: ContextKind,