FeatureHi 👋 First of all, thank you for your great work on Mago. It’s exciting to see that LSP support is planned for the upcoming 2.0 release. I believe this will significantly improve the PHP development experience, especially for developers using VS Code. I have a question regarding your LSP roadmap. Since Mago is planning to introduce LSP capabilities, I’m wondering: I am currently considering building an LSP server specifically for Laravel Blade templates, and I’m trying to understand whether: My goal is to improve the development experience for Laravel developers in editors like VS Code, and I’d love to align with your direction if possible. Thanks again for your work, and I appreciate any insight you can share about the roadmap. Best regards Example |
Replies: 2 comments
|
Hi! Yes, we do have plans to support both twig and blade ( #303, #304 ), However:
|
|
It sounds like we’re all thinking along the same lines :)
While you could provide basic feedback and compleation for Blade with a standalone LSP you would fall a bit short when it comes to the PHP portion you would fall short without an LSP that both Laravel and Blade. About a month ago, I started working on an LSP in Rust and ended up using Mago as the parser, only to realize that they do have plans for LSP support in the future. I already have solid support for PHP and Laravel, including completion, definition, signature help, and hover. I’m also the maintainer of Bladestan (a Blade plugin for PHPStan), and my plan is to improve standards for Blade files both through my LSP and Bladestan. You can find my roadmap for adding Blade support to the LSP here: todo-blade.md Overall, my goal is correctness and performance, assuming a modern PHP stack using Composer. You can also find the reasoning behind my design decisions in ARCHITECTURE.md and todo-laravel.md. I think my LSP is alrady very viable, but I hope to at least inspire others in this field to make excellent tools for PHP. P.s. I would be happy for testing, feedback, and contributions. |
Hi!
Yes, we do have plans to support both twig and blade ( #303, #304 ), However: