devsense-php-ls 1.0.17329 → 1.0.17357
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +70 -4
- package/dist/index.d.ts +7 -0
- package/dist/index.js +2 -0
- package/package.json +7 -8
- package/.vscode/launch.json +0 -25
- package/.vscode/tasks.json +0 -15
package/README.md
CHANGED
|
@@ -2,13 +2,79 @@
|
|
|
2
2
|
|
|
3
3
|
This package provides language server for PHP.
|
|
4
4
|
|
|
5
|
-
## Language Server
|
|
5
|
+
## 🧠 Language Server
|
|
6
6
|
|
|
7
7
|
The language server executable is a binary platform specific file installed as a dependency, located at `node_modules/devsense-php-ls-$os-$cpu/dist/devsense.php.ls`.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
## 🧬 Protocol
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Upon starting, the language server is controlled using the Language Server Protocol according to https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/ through STDIN/STDOUT.
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
There are several additions:
|
|
14
14
|
|
|
15
|
+
- `"initialize"` method, parameter:
|
|
16
|
+
|
|
17
|
+
```json
|
|
18
|
+
{
|
|
19
|
+
"initializationOptions": {
|
|
20
|
+
"0": "<license signature>",
|
|
21
|
+
// VSCode settings and their values listed on
|
|
22
|
+
// https://docs.devsense.com/vscode/configuration/
|
|
23
|
+
// "setting-id": "value",
|
|
24
|
+
},
|
|
25
|
+
|
|
26
|
+
// process of the client so
|
|
27
|
+
// LS will automatically kill itself if client exits
|
|
28
|
+
"processId": 123456,
|
|
29
|
+
|
|
30
|
+
// ...
|
|
31
|
+
}
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
- `"devsense/loadStatus"` notification sent from server to client.
|
|
35
|
+
|
|
36
|
+
## 🔐 Activation
|
|
37
|
+
|
|
38
|
+
The language server provides free features and premium features which needs to be activated.
|
|
39
|
+
|
|
40
|
+
**_Note to developers:_** To unlock the premium features of this package, please follow the steps below:
|
|
41
|
+
|
|
42
|
+
1. **Purchase a License:**
|
|
43
|
+
User needs to purchase license on our official purchase page: [https://www.devsense.com/purchase](https://www.devsense.com/purchase)
|
|
44
|
+
|
|
45
|
+
2. **Generate License Signature:**
|
|
46
|
+
User will go to the following page to validate license to receive the license **SIGNATURE**: [https://www.devsense.com/purchase/validation](https://www.devsense.com/purchase/validation)
|
|
47
|
+
|
|
48
|
+
3. **Activate Premium Features**
|
|
49
|
+
Pass the license signature into the language server's `initialize` method, `"initializationOptions"` property:
|
|
50
|
+
```json
|
|
51
|
+
{
|
|
52
|
+
"initializationOptions": {
|
|
53
|
+
"0": "<SIGNATURE>",
|
|
54
|
+
...
|
|
55
|
+
},
|
|
56
|
+
...
|
|
57
|
+
}`
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Or store the license signature into environment variable `DEVSENSE_PHP_LS_LICENSE`.
|
|
61
|
+
|
|
62
|
+
```shell
|
|
63
|
+
SET DEVSENSE_PHP_LS_LICENSE="<SIGNATURE>"
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
If you encounter any issues during the activation process, please refer to our documentation or contact support.
|
|
67
|
+
|
|
68
|
+
## 📜 Agreement
|
|
69
|
+
|
|
70
|
+
By including this package as a dependency in your project—whether for personal, commercial, or open-source use—you agree to the following:
|
|
71
|
+
|
|
72
|
+
* **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).
|
|
73
|
+
* This is to ensure that end users and developers are aware:
|
|
74
|
+
|
|
75
|
+
* Who the original authors and maintainers of this package are
|
|
76
|
+
* How to access premium features, including purchasing and activation steps
|
|
77
|
+
|
|
78
|
+
This visibility helps support ongoing development and ensures fair use under our freemium model.
|
|
79
|
+
|
|
80
|
+
> If you cannot comply with this requirement or need a custom license, please [contact us](https://www.devsense.com/) for a commercial agreement.
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
#! /usr/bin/env node
|
|
2
|
+
"use strict";var v=Object.create;var s=Object.defineProperty;var _=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var g=Object.getPrototypeOf,y=Object.prototype.hasOwnProperty;var z=(e,o)=>{for(var t in o)s(e,t,{get:o[t],enumerable:!0})},l=(e,o,t,r)=>{if(o&&typeof o=="object"||typeof o=="function")for(let n of b(o))!y.call(e,n)&&n!==t&&s(e,n,{get:()=>o[n],enumerable:!(r=_(o,n))||r.enumerable});return e};var c=(e,o,t)=>(t=e!=null?v(g(e)):{},l(o||!e||!e.__esModule?s(t,"default",{value:e,enumerable:!0}):t,e)),F=e=>l(s({},"__esModule",{value:!0}),e);var N={};z(N,{Devsense:()=>h});module.exports=F(N);var a=require("os"),i=c(require("fs")),f=c(require("path")),h;(o=>{let e;(r=>{let t;(p=>{p.FileName="devsense.php.ls";function j(){let u=`devsense-php-ls-${(0,a.platform)()}-${(0,a.arch)()}`;for(let x of["..","../..","../node_modules","node_modules"]){let m=f.resolve(__dirname,x,u);if(i.existsSync(m))for(let $ of[p.FileName,`${p.FileName}.exe`]){let d=f.normalize(`${m}/dist/${$}`);if(i.existsSync(d))return d}}}p.languageServerPath=j})(t=r.LS||={})})(e=o.PHP||={})})(h||={});0&&(module.exports={Devsense});
|
package/package.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "devsense-php-ls",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.17357",
|
|
4
4
|
"description": "Devsense PHP Language Server",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
5
|
"types": "dist/index.d.ts",
|
|
7
6
|
"os": [
|
|
8
7
|
"darwin",
|
|
@@ -25,11 +24,11 @@
|
|
|
25
24
|
"language server"
|
|
26
25
|
],
|
|
27
26
|
"optionalDependencies": {
|
|
28
|
-
"devsense-php-ls-darwin-arm64": "^1.0.
|
|
29
|
-
"devsense-php-ls-darwin-x64": "^1.0.
|
|
30
|
-
"devsense-php-ls-linux-arm64": "^1.0.
|
|
31
|
-
"devsense-php-ls-linux-x64": "^1.0.
|
|
32
|
-
"devsense-php-ls-win32-arm64": "^1.0.
|
|
33
|
-
"devsense-php-ls-win32-x64": "^1.0.
|
|
27
|
+
"devsense-php-ls-darwin-arm64": "^1.0.17357",
|
|
28
|
+
"devsense-php-ls-darwin-x64": "^1.0.17357",
|
|
29
|
+
"devsense-php-ls-linux-arm64": "^1.0.17357",
|
|
30
|
+
"devsense-php-ls-linux-x64": "^1.0.17357",
|
|
31
|
+
"devsense-php-ls-win32-arm64": "^1.0.17357",
|
|
32
|
+
"devsense-php-ls-win32-x64": "^1.0.17357"
|
|
34
33
|
}
|
|
35
34
|
}
|
package/.vscode/launch.json
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
// Use IntelliSense to learn about possible attributes.
|
|
3
|
-
// Hover to view descriptions of existing attributes.
|
|
4
|
-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
5
|
-
"version": "0.2.0",
|
|
6
|
-
"configurations": [
|
|
7
|
-
|
|
8
|
-
{
|
|
9
|
-
"type": "node",
|
|
10
|
-
"request": "launch",
|
|
11
|
-
"cwd": "${workspaceFolder}",
|
|
12
|
-
"runtimeArgs": [
|
|
13
|
-
"--import=tsx",
|
|
14
|
-
],
|
|
15
|
-
"console": "integratedTerminal",
|
|
16
|
-
"args": [
|
|
17
|
-
"src/index.ts"
|
|
18
|
-
],
|
|
19
|
-
"name": "Run",
|
|
20
|
-
"skipFiles": [
|
|
21
|
-
"<node_internals>/**"
|
|
22
|
-
]
|
|
23
|
-
}
|
|
24
|
-
]
|
|
25
|
-
}
|