PHPantom LSP is used by PHPStan playground! #142
ondrejmirtes
started this conversation in
Show and tell
Replies: 2 comments
|
That's amazing! Very motivational too :) |
0 replies
|
Thanks again for sharing this! I finally had some time to follow up, and I've now landed your changes in main via c83ba88 (additional documentation and CI/CD improvements are in the next commit). The 0.10.0 release should be out in a few days, including a WASM build, which will hopefully make updating much easier for you going forward. Regarding the binary size, a very large part of it comes down to the stubs. Pre-processing them should reduce the size and also help startup time. I have a backlog item to look into that at some point. I'm really looking forward to hearing your talk next week here in Denmark. Hopefully, we'll get a chance to say hi! :) |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi, I had the idea that this project could be compiled into WASM and used inside the CodeMirror editor for various quality-of-life improvements of the PHPStan on-line playground: https://phpstan.org/try
I had to put in some extra work to make it work for our use-case (https://github.com/ondrejmirtes/phpantom_lsp/commits/wasm/) but the result is a 2 MB binary (Brotli-compressed) that now vastly improves the experience of the playground.
Thanks to LSP we now have:
count()call, it shows a pane with PHP documentationThe playground is ridiculously good now thanks to your work!
Feel free to bring the things I had to do on top of your main branch back to the project (if they make sense, I can't really tell either way), but don't feel any pressure to do so.
All reactions