Skip to content

Instantly share code, notes, and snippets.

@TuM0xA-S
Created April 12, 2021 16:47
Show Gist options
  • Save TuM0xA-S/b46fff7f0cd7279caa2d84412f1895b6 to your computer and use it in GitHub Desktop.
Save TuM0xA-S/b46fff7f0cd7279caa2d84412f1895b6 to your computer and use it in GitHub Desktop.
Starting language server, use -vvv for verbose output
[INFO][245862.762445] Listening on STDIO[]
[INFO][245862.763923] IN:{
"id": 1,
"jsonrpc": "2.0",
"method": "initialize",
"params": {
"capabilities": {
"textDocument": {
"codeAction": {
"codeActionLiteralSupport": {
"codeActionKind": {
"valueSet": [
"",
"quickfix",
"refactor",
"refactor.extract",
"refactor.inline",
"refactor.rewrite",
"source",
"source.organizeImports"
]
}
}
},
"completion": {
"completionItem": {
"documentationFormat": [
"plaintext",
"markdown"
]
},
"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
]
}
},
"documentSymbol": {
"hierarchicalDocumentSymbolSupport": false,
"labelSupport": false,
"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
]
}
},
"hover": {
"contentFormat": [
"plaintext",
"markdown"
]
},
"signatureHelp": {
"signatureInformation": {
"documentationFormat": [
"plaintext",
"markdown"
],
"parameterInformation": {
"labelOffsetSupport": true
}
}
},
"synchronization": {
"didSave": true
}
},
"workspace": {
"applyEdit": true,
"didChangeWatchedFiles": {
"dynamicRegistration": true
},
"symbol": {
"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
]
}
},
"workspaceEdit": {
"documentChanges": true
}
}
},
"initializationOptions": [],
"processId": 5878,
"rootPath": "\/home\/tum0xa\/src\/phpsite",
"rootUri": "file:\/\/\/home\/tum0xa\/src\/phpsite"
}
}
[INFO][245862.813024] OUT: {
"id": 1,
"result": {
"capabilities": {
"textDocumentSync": 1,
"completionProvider": {
"triggerCharacters": [
":",
">",
"$"
],
"allCommitCharacters": null,
"resolveProvider": null,
"workDoneProgress": null
},
"hoverProvider": true,
"signatureHelpProvider": {
"triggerCharacters": [
"(",
","
],
"retriggerCharacters": null,
"workDoneProgress": null
},
"declarationProvider": null,
"definitionProvider": true,
"typeDefinitionProvider": true,
"implementationProvider": true,
"referencesProvider": true,
"documentHighlightProvider": {
"workDoneProgress": null
},
"documentSymbolProvider": {
"workDoneProgress": null
},
"codeActionProvider": {
"codeActionKinds": [
"quickfix.import_class",
"quickfix.complete_constructor",
"quickfix.create_class",
"quickfix.add_missing_properties",
"quickfix.implement_contracts",
"quickfix.fix_namespace_class_name"
],
"workDoneProgress": null
},
"codeLensProvider": null,
"documentLinkProvider": null,
"colorProvider": null,
"workspaceSymbolProvider": null,
"documentFormattingProvider": null,
"documentRangeFormattingProvider": null,
"documentOnTypeFormattingProvider": null,
"renameProvider": null,
"foldingRangeProvider": null,
"selectionRangeProvider": true,
"executeCommandProvider": {
"commands": [
"name_import",
"transform",
"create_class"
],
"workDoneProgress": null
},
"experimental": null,
"workspace": null
},
"serverInfo": []
},
"error": null,
"jsonrpc": "2.0"
}
[INFO][245862.816257] IN:{
"jsonrpc": "2.0",
"method": "initialized",
"params": []
}
[INFO][245862.826861] OUT: {
"method": "window\/showMessage",
"params": {
"type": 3,
"message": "Indexing \"0\" PHP files"
},
"jsonrpc": "2.0"
}
[INFO][245862.842490] IN:{
"jsonrpc": "2.0",
"method": "workspace\/didChangeConfiguration",
"params": {
"settings": []
}
}
[INFO][245862.843111] IN:{
"jsonrpc": "2.0",
"method": "textDocument\/didOpen",
"params": {
"textDocument": {
"languageId": "php",
"text": "<?php\n?>\n",
"uri": "file:\/\/\/home\/tum0xa\/src\/phpsite\/index.php",
"version": 1
}
}
}
[INFO][245862.878315] OUT: {
"method": "window\/showMessage",
"params": {
"type": 3,
"message": "Done indexing (0.05s, 19\/1,611 mb), watching with pattern matching find (BSD\/GNU)"
},
"jsonrpc": "2.0"
}
[INFO][245869.796297] IN:{
"jsonrpc": "2.0",
"method": "textDocument\/didChange",
"params": {
"contentChanges": [
{
"text": "<?php\narray_slice(\n?>\n"
}
],
"textDocument": {
"uri": "file:\/\/\/home\/tum0xa\/src\/phpsite\/index.php",
"version": 2
}
}
}
[INFO][245869.800526] IN:{
"id": 2,
"jsonrpc": "2.0",
"method": "textDocument\/signatureHelp",
"params": {
"position": {
"character": 12,
"line": 1
},
"textDocument": {
"uri": "file:\/\/\/home\/tum0xa\/src\/phpsite\/index.php"
}
}
}
[INFO][245869.818022] OUT: {
"id": 2,
"result": {
"signatures": [
{
"label": "array_slice(array $array, int $offset, int $length = NULL, bool $preserve_keys = false): array",
"documentation": null,
"parameters": [
{
"label": "array",
"documentation": "array $array"
},
{
"label": "offset",
"documentation": "int $offset"
},
{
"label": "length",
"documentation": "int $length = NULL"
},
{
"label": "preserve_keys",
"documentation": "bool $preserve_keys = false"
}
]
}
],
"activeSignature": 0,
"activeParameter": 0
},
"error": null,
"jsonrpc": "2.0"
}
[INFO][245886.854176] IN:{
"id": 3,
"jsonrpc": "2.0",
"method": "textDocument\/hover",
"params": {
"position": {
"character": 11,
"line": 1
},
"textDocument": {
"uri": "file:\/\/\/home\/tum0xa\/src\/phpsite\/index.php"
}
}
}
[INFO][245886.889765] OUT: {
"id": 3,
"result": {
"contents": {
"kind": "markdown",
"value": "`array_slice`\n\nExtract a slice of the array\nThe input array.\n\nIf offset is non-negative, the sequence will\nstart at that offset in the array. If\noffset is negative, the sequence will\nstart that far from the end of the array.\n\nIf length is given and is positive, then\nthe sequence will have that many elements in it. If\nlength is given and is negative then the\nsequence will stop that many elements from the end of the\narray. If it is omitted, then the sequence will have everything\nfrom offset up until the end of the\narray.\n\nNote that array_slice will reorder and reset the\narray indices by default. You can change this behaviour by setting\npreserve_keys to true.\n\n```php\n<?php function array_slice(array $array, int $offset, int $length, bool $preserve_keys): array\n```"
},
"range": {
"start": {
"line": 1,
"character": 0
},
"end": {
"line": 1,
"character": 11
}
}
},
"error": null,
"jsonrpc": "2.0"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment