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

Function get_code_lenses

tests/integration/code_lens.rs:5–8  ·  view source on GitHub ↗

Helper: open a file in the backend and return its code lenses.

(backend: &phpantom_lsp::Backend, uri: &str, content: &str)

Source from the content-addressed store, hash-verified

3
4/// Helper: open a file in the backend and return its code lenses.
5fn 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.
11fn lens_titles(lenses: &[CodeLens]) -> Vec<&str> {

Calls 2

update_astMethod · 0.80
handle_code_lensMethod · 0.80