Some minor clarity/cosmetic improvements

Co-authored-by: Pascal Kuthe <pascal.kuthe@semimod.de>
This commit is contained in:
Philipp Mildenberger 2023-04-05 18:56:19 +02:00
parent 39b9a4bba2
commit 2b746ea6fa
2 changed files with 7 additions and 5 deletions

View file

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