php-language-server
php-language-server copied to clipboard
Only Symbols works, All other commands gives no response
I have this problem that I have no idea what am doing wrong. I have this editor (closed source) that works fine with Serenata, but only symbols (textDocument/documentSymbol
) works with this LS. If anyone can figure out what am doing wrong, I will be grateful. Hover for example, does not work
here is the hover command which works with Serenata but not with this Lang Server
{
"id": 7,
"jsonrpc": "2.0",
"method": "textDocument/hover",
"params": {
"textDocument": {
"uri": "file:///Users/hosanna/Projects/ProjectFolder/Controller.php"
},
"position": {
"line": 568,
"character": 26
}
}
}
Here is my initialize JSON-RPC.
{
"id": 2,
"jsonrpc": "2.0",
"method": "initialize",
"params": {
"processId": 49731,
"rootUri": "file:///Users/me/Projects/ProjectFolder",
"rootPath": "/Users/me/Projects/ProjectFolder",
"capabilities": {
"workspace": {
"applyEdit": true,
"workspaceEdit": {
"documentChanges": true,
"resourceOperations": [
"create",
"rename",
"delete"
],
"normalizesLineEndings": true,
"failureHandling": "textOnlyTransactional"
},
"didChangeConfiguration": {
"dynamicRegistration": true
},
"symbol": {
"dynamicRegistration": true,
"symbolKind": {
"valueSet": [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26
]
},
"configuration": true,
"workspaceFolders": true
},
"executeCommand": {
"dynamicRegistration": true
}
},
"textDocument": {
"synchronization": {
"dynamicRegistration": true,
"willSave": true,
"willSaveWaitUntil": true,
"didSave": true
},
"completion": {
"dynamicRegistration": true,
"completionItemKind": {
"valueSet": [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25
]
}
},
"hover": {
"dynamicRegistration": true,
"contentFormat": [
"markdown",
"plaintext"
]
},
"definition": {
"dynamicRegistration": true,
"linkSupport": true
}
}
},
"trace": "verbose",
"locale": "en"
}
}