mirror of
https://github.com/helix-editor/helix.git
synced 2025-01-19 05:27:07 +04:00
Bail if no language servers support workspace symbols (#7286)
This commit is contained in:
parent
31b8b728a2
commit
d4427125eb
@ -442,6 +442,15 @@ fn nested_to_flat(
|
||||
|
||||
pub fn workspace_symbol_picker(cx: &mut Context) {
|
||||
let doc = doc!(cx.editor);
|
||||
if doc
|
||||
.language_servers_with_feature(LanguageServerFeature::WorkspaceSymbols)
|
||||
.count()
|
||||
== 0
|
||||
{
|
||||
cx.editor
|
||||
.set_error("No configured language server supports workspace symbols");
|
||||
return;
|
||||
}
|
||||
|
||||
let get_symbols = move |pattern: String, editor: &mut Editor| {
|
||||
let doc = doc!(editor);
|
||||
|
Loading…
Reference in New Issue
Block a user