Add PHP support via Intelephense#140
Merged
LakshyAAAgrawal merged 9 commits intomicrosoft:mainfrom Apr 10, 2026
Merged
Conversation
… improving clarity
- Fix .gitignore: use specific path instead of overly broad "static/" - Fix initialize_params.json description: was "Dart", now "Intelephense PHP" - Fix runtime_dependencies.json description: was "Phpactor", now "Intelephense" - Fix intelephense.py: use MultilspySettings install dir instead of package static/, add server_binary support, handle Windows (no pwd module), check executable not directory, add try/finally for cleanup, set completions_available event
Closed
Contributor
|
I thought this project was abandoned! So nice to see that my pr was useful Thanks for merging |
Collaborator
Author
|
Thanks a lot for your contributions @v4rgas! Not at all. I am sorry for being inactive lately, but the project is not at all abandoned. Would love to continue receiving your feedback and PRs! |
request_references() takes positional args (relative_file_path, line, column), not keyword arg file_path=.
Intelephense free tier has limited cross-file reference support, returning 0 results. Mark as xfail(strict=False) so it doesn't block CI but will report if it starts passing.
LakshyAAAgrawalP
approved these changes
Apr 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds PHP language support to multilspy using Intelephense, an npm-based PHP language server.
Based on #107 by @v4rgas — all original commits preserved. This PR builds on top with fixes for integration issues.
What works
Original work by @v4rgas (6 commits)
Fixes applied on top
.gitignore:static/was too broad, now scoped tosrc/multilspy/language_servers/intelephense/static/initialize_params.json: description said "Dart Language Server" (copy-paste error)runtime_dependencies.json: description said "Phpactor" (wrong server name)intelephense.py: useMultilspySettingsinstall dir instead of packagestatic/, addserver_binary/server_install_dirsupport, Windows compatibility (conditionalpwdimport), check executable not directory,try/finallyfor cleanup, setcompletions_availableeventCloses #107