@@ -3482,12 +3482,17 @@ pub fn code_action(cx: &mut Context) {
3483 cx.callback(
3483 cx.callback(
3485− move |_editor: &mut Editor,
3485+ move |editor: &mut Editor,
3486 compositor: &mut Compositor,
3486 compositor: &mut Compositor,
3487 response: Option<lsp::CodeActionResponse>| {
3487 response: Option<lsp::CodeActionResponse>| {
3488 if let Some(actions) = response {
3488 if let Some(actions) = response {
3489+ if actions.is_empty() {
3490+ editor.set_status("No code actions available".to_owned());
3489 let picker = Picker::new(
3494 let picker = Picker::new(
3491 actions,
3496 actions,
3492 |action| match action {
3497 |action| match action {
3493 lsp::CodeActionOrCommand::CodeAction(action) => {
3498 lsp::CodeActionOrCommand::CodeAction(action) => {
@@ -3515,7 +3520,8 @@ pub fn code_action(cx: &mut Context) {
3523+ let popup = Popup::new("code-action", picker);
3518− compositor.push(Box::new(picker))
3524+ compositor.push(Box::new(popup))