Select applicable positions for lsp_ext methods more leniently (#32272)

Closes https://github.com/zed-industries/zed/issues/27238

Release Notes:

- Fixed `editor::SwitchSourceHeader` and
`editor::ExpandMacroRecursively` not working with text selections
This commit is contained in:
Kirill Bulatov 2025-06-07 01:47:20 +03:00 committed by GitHub
parent 6d95fd9167
commit fa02bd71c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 12 additions and 9 deletions

View file

@ -132,9 +132,6 @@ pub fn expand_macro_recursively(
window: &mut Window,
cx: &mut Context<Editor>,
) {
if editor.selections.count() == 0 {
return;
}
let Some(project) = &editor.project else {
return;
};