mirror of
https://github.com/helix-editor/helix.git
synced 2025-04-04 19:37:54 +03:00
Some minor clarity/cosmetic improvements
Co-authored-by: Pascal Kuthe <pascal.kuthe@semimod.de>
This commit is contained in:
parent
39b9a4bba2
commit
2b746ea6fa
2 changed files with 7 additions and 5 deletions
|
@ -1395,7 +1395,7 @@ pub fn rename_symbol(cx: &mut Context) {
|
|||
|
||||
let Some(language_server) = doc
|
||||
.language_servers_with_feature(LanguageServerFeature::RenameSymbol)
|
||||
.find(|ls| language_server_id.is_none() || Some(ls.id()) == language_server_id)
|
||||
.find(|ls| language_server_id.map_or(true, |id| id == ls.id()))
|
||||
else {
|
||||
cx.editor.set_error("No configured language server supports symbol renaming");
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue