Helper: open a file in the backend and return its code lenses.
(backend: &phpantom_lsp::Backend, uri: &str, content: &str)
| 3 | |
| 4 | /// Helper: open a file in the backend and return its code lenses. |
| 5 | fn get_code_lenses(backend: &phpantom_lsp::Backend, uri: &str, content: &str) -> Vec<CodeLens> { |
| 6 | backend.update_ast(uri, content); |
| 7 | backend.handle_code_lens(uri, content).unwrap_or_default() |
| 8 | } |
| 9 | |
| 10 | /// Helper: extract just the titles from a list of code lenses. |
| 11 | fn lens_titles(lenses: &[CodeLens]) -> Vec<&str> { |