PHPantom LSP is used by PHPStan playground! #142
ondrejmirtes
started this conversation in
Show and tell
Replies: 1 comment
-
|
That's amazing! Very motivational too :) |
Beta Was this translation helpful? Give feedback.
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.
Beta Was this translation helpful? Give feedback.
All reactions