MCPcopy Create free account
hub / github.com/PHPantom-dev/phpantom_lsp / lens_titles

Function lens_titles

tests/integration/code_lens.rs:11–16  ·  view source on GitHub ↗

Helper: extract just the titles from a list of code lenses.

(lenses: &[CodeLens])

Source from the content-addressed store, hash-verified

9
10/// Helper: extract just the titles from a list of code lenses.
11fn lens_titles(lenses: &[CodeLens]) -> Vec<&str> {
12 lenses
13 .iter()
14 .filter_map(|l| l.command.as_ref().map(|c| c.title.as_str()))
15 .collect()
16}
17
18// ─── Basic Override Detection ───────────────────────────────────────────────
19

Calls 3

iterMethod · 0.80
as_strMethod · 0.80
mapMethod · 0.45