Clear Copilot suggestions when it gets disabled from the settings
This commit is contained in:
parent
abf158a9e4
commit
79d5bb45dc
5 changed files with 26 additions and 35 deletions
|
@ -176,13 +176,6 @@ impl Entity for Copilot {
|
|||
}
|
||||
|
||||
impl Copilot {
|
||||
pub fn starting_task(&self) -> Option<Shared<Task<()>>> {
|
||||
match self.server {
|
||||
CopilotServer::Starting { ref task } => Some(task.clone()),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn global(cx: &AppContext) -> Option<ModelHandle<Self>> {
|
||||
if cx.has_global::<ModelHandle<Self>>() {
|
||||
Some(cx.global::<ModelHandle<Self>>().clone())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue