Show icon to toggle inline assist
This commit is contained in:
parent
d804afcfa9
commit
1fb7ce0f4a
5 changed files with 31 additions and 5 deletions
|
@ -215,7 +215,11 @@ impl AssistantPanel {
|
|||
})
|
||||
}
|
||||
|
||||
fn inline_assist(workspace: &mut Workspace, _: &InlineAssist, cx: &mut ViewContext<Workspace>) {
|
||||
pub fn inline_assist(
|
||||
workspace: &mut Workspace,
|
||||
_: &InlineAssist,
|
||||
cx: &mut ViewContext<Workspace>,
|
||||
) {
|
||||
let this = if let Some(this) = workspace.panel::<AssistantPanel>(cx) {
|
||||
if this
|
||||
.update(cx, |assistant, cx| assistant.load_api_key(cx))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue