zobo / vscode-php-intellisense

Advanced PHP IntelliSense for Visual Studio Code 🆚💬
MIT License
63 stars 5 forks source link

Enable your extension to run on VS Code on the web #5

Open isidorn opened 2 years ago

isidorn commented 2 years ago

Cao Damjane, Isidor ovde, prebacujem se na Engleski i nadam se da sam pogodio repo:

We recently announced VS Code for the Web at https://vscode.dev/, which provides a free, zero-install Microsoft Visual Studio Code experience running entirely in your browser. You can learn more here.

We'd like to ensure PHP intellisense can run in the web, and we have a guide for enabling extensions for the web here. As a couple of highlights:

Please let us know if you have questions. I am not sure how easy it will be to enable the PHP language server to work on the web, it might not even be possible, but still wanted to create this issue for discussion. I hope that makes sense Isidor

zobo commented 2 years ago

Cao Isidore! Jako mi je žao da se javljam tako kasno, nisam dobio ni jedan notification iz ovog repota. 🤦‍♂️

I saw what you did with vscode.dev and it is crazy! I'm in the process of trying to push co-workers to use the live share feature and just opening vscode on the web is insanely great!

I did actually consider getting PHP into web version - not just the language server, but also debug, but I've hit a mental block right away.

As you said, the PHP Language Server is written, well, in PHP. And getting PHP to run in the browser is... I had a quick look around and perhaps something like https://seanmorris.github.io/php-wasm (https://github.com/seanmorris/php-wasm#readme) could potentially be used. But not without a lot of changes. Even now the performance is pretty bad, hate to imagine what it would be then :)

I will have a look at it, but to be honest I'm also exploring alternative options. Maybe there are other building blocks out there that could be used to make a more portable LS. Maybe something in GO, but even that compiled into JS/WASM is probably a heavy weight.

I do have a bit more hope for the debugging extension. I'll create an issue there and tag you.

Thanks for showing interest!

isidorn commented 2 years ago

Opusteno, nije nista hitno :)

Glad you like vscode.dev, it's pretty neat.

Yeah as you said I am not sure if getting to run PHP in the browser is in the cards now. I mostly created this issue for investigation purposes and to hear your thoughts. And maybe somebody from the community might chime in. So thanks for thinking about this!