genius257 / vscode-viewfile-intellisense

ViewFile intellisense for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=genius257.vscode-viewfile-intellisense
MIT License
0 stars 0 forks source link

Change from PHP language server to JS language server #4

Open genius257 opened 1 year ago

genius257 commented 1 year ago

Current solution does not work well with docker containers, and is overall a bit unstable and hacky currently.

To solve this, a JS language server should be used, and IPC via Std-in/out for getting the required composer information.

If IPC is problematic, due to being unable to get composer dependency changes in the PHP script, running the php script, whenever a change to workspace (PHP files) are detected, could be used instead.

This solution is how extensions, like phpcs works, and solves alot of issues with ports being unreachable when PHP and JS code is being executed from different environments.

It will also make the code easier to maintain.

genius257 commented 1 year ago

To get composer information in node, without running or requiring client machine to have PHP, uniter could be used.