Show icon to toggle inline assist

This commit is contained in:
Antonio Scandurra 2023-08-28 12:13:44 +02:00
parent d804afcfa9
commit 1fb7ce0f4a
5 changed files with 31 additions and 5 deletions

View file

@ -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))