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

Function open_blade

tests/integration/blade_debug.rs:87–100  ·  view source on GitHub ↗
(backend: &phpantom_lsp::Backend)

Source from the content-addressed store, hash-verified

85 // ── Helper: open either the Blade or PHP file ───────────────────────
86
87 async fn open_blade(backend: &phpantom_lsp::Backend) -> String {
88 let uri = "file:///resources/views/email.blade.php";
89 backend
90 .did_open(DidOpenTextDocumentParams {
91 text_document: TextDocumentItem {
92 uri: Url::parse(uri).unwrap(),
93 language_id: "blade".to_string(),
94 version: 1,
95 text: BLADE_TEMPLATE.to_string(),
96 },
97 })
98 .await;
99 uri.to_string()
100 }
101
102 async fn open_php_equivalent(backend: &phpantom_lsp::Backend) -> String {
103 let uri = "file:///equivalent.php";

Callers 6

test_hover_author_bladeFunction · 0.85
test_hover_post_bladeFunction · 0.85
test_gtd_get_title_bladeFunction · 0.85
test_hover_chained_bladeFunction · 0.85

Calls 2

did_openMethod · 0.45
unwrapMethod · 0.45

Tested by 6

test_hover_author_bladeFunction · 0.68
test_hover_post_bladeFunction · 0.68
test_gtd_get_title_bladeFunction · 0.68
test_hover_chained_bladeFunction · 0.68