Devsense PHP Language Server
npm install devsense-php-lsnode_modules/devsense-php-ls-${os}-${cpu}/dist/devsense.php.ls.
"initialize" method, parameter:
json
{
"initializationOptions": {
"0": "KEY or {JSON CODE}",
"clientFeatures": [],
// VSCode settings and their values listed on
// https://docs.devsense.com/vscode/configuration/
// "setting-id": "value",
},
// process ID of client allowing
// LS to automatically kill itself if client exits
"processId": 123456,
// ...
}
`
- "devsense/loadStatus" notification sent from server to client.
🔐 Activation
The language server provides free features and premium features which needs to be activated by end-user.
_Note to developers:_ To unlock the premium features of this package, instruct end-users to follow the steps below:
1. Purchase a License:
User needs to purchase license on official purchase page: https://www.devsense.com/purchase
2. Activate Language Server
Set the value of license key into DEVSENSE_PHP_LS_LICENSE environment variable or "initializationOptions"."0". Language Server will try to activate automatically upon starting (requires Internet connection).
3. Optional: Offline Activation
In case there is no Internet connection: User will follow the link below to validate license and receive a {JSON CODE}: devsense.com/purchase/validation
Pass the entire {JSON CODE} into the language server's initialize method, as a "initializationOptions"."0" property:
`json
{
"initializationOptions": {
"0": "{JSON CODE}",
},
}
`
Or store the {JSON CODE} into environment variable DEVSENSE_PHP_LS_LICENSE.
---
If you encounter any issues during the activation process, please refer to our documentation or contact support.
📜 Agreement
By including this package as a dependency in your project—whether for personal, commercial, or open-source use—you agree to the following:
* Attribution is required: You must include a visible link to this README file in your project documentation (e.g. in your README.md`, about page, or developer docs).