assistant2: Only show thread context in picker when we have a ThreadStore
(#23501)
This PR fixes an issue with the context picker where it would show thread context as an option even if there was no `ThreadStore` available. Release Notes: - N/A
This commit is contained in:
parent
a1077c6fff
commit
01b57b10e7
2 changed files with 18 additions and 20 deletions
|
@ -43,15 +43,6 @@ pub enum ContextKind {
|
|||
}
|
||||
|
||||
impl ContextKind {
|
||||
pub fn all() -> &'static [ContextKind] {
|
||||
&[
|
||||
ContextKind::File,
|
||||
ContextKind::Directory,
|
||||
ContextKind::FetchedUrl,
|
||||
ContextKind::Thread,
|
||||
]
|
||||
}
|
||||
|
||||
pub fn label(&self) -> &'static str {
|
||||
match self {
|
||||
ContextKind::File => "File",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue