Skip to content

Instantly share code, notes, and snippets.

@MokkeMeguru
Created December 11, 2019 07:02
Show Gist options
  • Save MokkeMeguru/9704154a180b558b954fa89c6ec40a3b to your computer and use it in GitHub Desktop.
Save MokkeMeguru/9704154a180b558b954fa89c6ec40a3b to your computer and use it in GitHub Desktop.
[Trace - 04:01:11 PM] Sending request 'initialize - (72)'.
Params: {
"processId": 1239,
"rootPath": "/usr/app",
"rootUri": "file:///usr/app",
"capabilities": {
"workspace": {
"workspaceEdit": {
"documentChanges": true,
"resourceOperations": [
"create",
"rename",
"delete"
]
},
"applyEdit": 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
]
}
},
"executeCommand": {
"dynamicRegistration": false
},
"didChangeWatchedFiles": {
"dynamicRegistration": true
},
"workspaceFolders": true,
"configuration": true
},
"textDocument": {
"declaration": {
"linkSupport": true
},
"definition": {
"linkSupport": true
},
"implementation": {
"linkSupport": true
},
"typeDefinition": {
"linkSupport": true
},
"synchronization": {
"willSave": true,
"didSave": true,
"willSaveWaitUntil": true
},
"documentSymbol": {
"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
]
},
"hierarchicalDocumentSymbolSupport": true
},
"formatting": {
"dynamicRegistration": true
},
"rangeFormatting": {
"dynamicRegistration": true
},
"rename": {
"dynamicRegistration": true
},
"semanticHighlightingCapabilities": {
"semanticHighlighting": null
},
"codeAction": {
"dynamicRegistration": true,
"codeActionLiteralSupport": {
"codeActionKind": {
"valueSet": [
"",
"quickfix",
"refactor",
"refactor.extract",
"refactor.inline",
"refactor.rewrite",
"source",
"source.organizeImports"
]
}
}
},
"completion": {
"completionItem": {
"snippetSupport": true,
"documentationFormat": [
"markdown"
]
},
"contextSupport": true
},
"signatureHelp": {
"signatureInformation": {
"parameterInformation": {
"labelOffsetSupport": true
}
}
},
"documentLink": {
"dynamicRegistration": true
},
"hover": {
"contentFormat": [
"markdown",
"plaintext"
]
},
"foldingRange": {
"dynamicRegistration": true,
"rangeLimit": null,
"lineFoldingOnly": false
}
}
},
"initializationOptions": null
}
[Trace - 04:01:11 PM] Received notification 'window/logMessage'.
Params: {
"message": "[lspserver] initialize {\n \"processId\": 1239,\n \"rootPath\": \"/usr/app\",\n \"rootUri\": \"file:///usr/app\",\n \"capabilities\": {\n \"workspace\": {\n \"workspaceEdit\": {\n \"documentChanges\": true,\n \"resourceOperations\": [\n \"create\",\n \"rename\",\n \"delete\"\n ]\n },\n \"applyEdit\": true,\n \"symbol\": {\n \"symbolKind\": {\n \"valueSet\": [\n 1,\n 2,\n 3,\n 4,\n 5,\n 6,\n 7,\n 8,\n 9,\n 10,\n 11,\n 12,\n 13,\n 14,\n 15,\n 16,\n 17,\n 18,\n 19,\n 20,\n 21,\n 22,\n 23,\n 24,\n 25,\n 26\n ]\n }\n },\n \"executeCommand\": {\n \"dynamicRegistration\": false\n },\n \"didChangeWatchedFiles\": {\n \"dynamicRegistration\": true\n },\n \"workspaceFolders\": true,\n \"configuration\": true\n },\n \"textDocument\": {\n \"declaration\": {\n \"linkSupport\": true\n },\n \"definition\": {\n \"linkSupport\": true\n },\n \"implementation\": {\n \"linkSupport\": true\n },\n \"typeDefinition\": {\n \"linkSupport\": true\n },\n \"synchronization\": {\n \"willSave\": true,\n \"didSave\": true,\n \"willSaveWaitUntil\": true\n },\n \"documentSymbol\": {\n \"symbolKind\": {\n \"valueSet\": [\n 1,\n 2,\n 3,\n 4,\n 5,\n 6,\n 7,\n 8,\n 9,\n 10,\n 11,\n 12,\n 13,\n 14,\n 15,\n 16,\n 17,\n 18,\n 19,\n 20,\n 21,\n 22,\n 23,\n 24,\n 25,\n 26\n ]\n },\n \"hierarchicalDocumentSymbolSupport\": true\n },\n \"formatting\": {\n \"dynamicRegistration\": true\n },\n \"rangeFormatting\": {\n \"dynamicRegistration\": true\n },\n \"rename\": {\n \"dynamicRegistration\": true\n },\n \"semanticHighlightingCapabilities\": {\n \"semanticHighlighting\": null\n },\n \"codeAction\": {\n \"dynamicRegistration\": true,\n \"codeActionLiteralSupport\": {\n \"codeActionKind\": {\n \"valueSet\": [\n \"\",\n \"quickfix\",\n \"refactor\",\n \"refactor.extract\",\n \"refactor.inline\",\n \"refactor.rewrite\",\n \"source\",\n \"source.organizeImports\"\n ]\n }\n }\n },\n \"completion\": {\n \"completionItem\": {\n \"snippetSupport\": true,\n \"documentationFormat\": [\n \"markdown\"\n ]\n },\n \"contextSupport\": true\n },\n \"signatureHelp\": {\n \"signatureInformation\": {\n \"parameterInformation\": {\n \"labelOffsetSupport\": true\n }\n }\n },\n \"documentLink\": {\n \"dynamicRegistration\": true\n },\n \"hover\": {\n \"contentFormat\": [\n \"markdown\",\n \"plaintext\"\n ]\n },\n \"foldingRange\": {\n \"dynamicRegistration\": true,\n \"rangeLimit\": null,\n \"lineFoldingOnly\": false\n }\n }\n },\n \"initializationOptions\": null\n}",
"type": 4
}
[Trace - 04:01:11 PM] Received notification 'window/logMessage'.
Params: {
"message": "[tsclient] Starting tsserver : 'tsserver --logFile /tmp/tslog.txt --logVerbosity normal --cancellationPipeName /tmp/a211339bc269fa39b63fe9143be3da24/tscancellation*'",
"type": 3
}
[Trace - 04:01:11 PM] Received notification 'window/logMessage'.
Params: {
"message": "[tsclient] request {\n \"command\": \"configure\",\n \"seq\": 1,\n \"type\": \"request\",\n \"arguments\": {\n \"preferences\": {\n \"allowTextChangesInNewFiles\": true\n }\n }\n}",
"type": 4
}
[Trace - 04:01:11 PM] Received notification 'window/logMessage'.
Params: {
"message": "[lspserver] onInitialize result {\n \"capabilities\": {\n \"textDocumentSync\": 2,\n \"completionProvider\": {\n \"triggerCharacters\": [\n \".\",\n \"\\\"\",\n \"'\",\n \"/\",\n \"@\",\n \"<\"\n ],\n \"resolveProvider\": true\n },\n \"codeActionProvider\": true,\n \"definitionProvider\": true,\n \"documentFormattingProvider\": true,\n \"documentHighlightProvider\": true,\n \"documentSymbolProvider\": true,\n \"executeCommandProvider\": {\n \"commands\": [\n \"_typescript.applyWorkspaceEdit\",\n \"_typescript.applyCodeAction\",\n \"_typescript.applyRefactoring\",\n \"_typescript.organizeImports\",\n \"_typescript.applyRenameFile\"\n ]\n },\n \"hoverProvider\": true,\n \"renameProvider\": true,\n \"referencesProvider\": true,\n \"signatureHelpProvider\": {\n \"triggerCharacters\": [\n \"(\",\n \",\",\n \"<\"\n ]\n },\n \"workspaceSymbolProvider\": true,\n \"implementationProvider\": true,\n \"typeDefinitionProvider\": true,\n \"foldingRangeProvider\": true,\n \"callsProvider\": true\n },\n \"logFileUri\": \"file:///tmp/tslog.txt\"\n}",
"type": 4
}
[Trace - 04:01:11 PM] Received response 'initialize - (72)' in 68ms.
Result: {
"logFileUri": "file:///tmp/tslog.txt",
"capabilities": {
"callsProvider": true,
"foldingRangeProvider": true,
"typeDefinitionProvider": true,
"implementationProvider": true,
"workspaceSymbolProvider": true,
"signatureHelpProvider": {
"triggerCharacters": [
"(",
",",
"<"
]
},
"referencesProvider": true,
"renameProvider": true,
"hoverProvider": true,
"executeCommandProvider": {
"commands": [
"_typescript.applyWorkspaceEdit",
"_typescript.applyCodeAction",
"_typescript.applyRefactoring",
"_typescript.organizeImports",
"_typescript.applyRenameFile"
]
},
"documentSymbolProvider": true,
"documentHighlightProvider": true,
"documentFormattingProvider": true,
"definitionProvider": true,
"codeActionProvider": true,
"completionProvider": {
"resolveProvider": true,
"triggerCharacters": [
".",
"\"",
"'",
"/",
"@",
"<"
]
},
"textDocumentSync": 2
}
}
[Trace - 04:01:11 PM] Sending notification 'initialized'.
Params: {
}
[Trace - 04:01:11 PM] Sending notification 'textDocument/didOpen'.
Params: {
"textDocument": {
"uri": "file:///usr/app/index.ts",
"languageId": "typescript",
"version": 4,
"text": "console.log('hello')\n"
}
}
[Trace - 04:01:11 PM] Sending request 'textDocument/documentHighlight - (73)'.
Params: {
"textDocument": {
"uri": "file:///usr/app/index.ts"
},
"position": {
"line": 1,
"character": 0
}
}
[Trace - 04:01:11 PM] Received notification 'window/logMessage'.
Params: {
"message": "[lspserver] onDidOpenTextDocument {\n \"textDocument\": {\n \"uri\": \"file:///usr/app/index.ts\",\n \"languageId\": \"typescript\",\n \"version\": 4,\n \"text\": \"console.log('hello')\\n\"\n }\n} /usr/app/index.ts",
"type": 4
}
[Trace - 04:01:11 PM] Received notification 'window/logMessage'.
Params: {
"message": "[tsclient] notify {\n \"command\": \"open\",\n \"seq\": 2,\n \"type\": \"request\",\n \"arguments\": {\n \"file\": \"/usr/app/index.ts\",\n \"fileContent\": \"console.log('hello')\\n\",\n \"scriptKindName\": \"TS\",\n \"projectRootPath\": \"/usr/app\"\n }\n}",
"type": 4
}
[Trace - 04:01:11 PM] Received notification 'window/logMessage'.
Params: {
"message": "[lspserver] documentHighlight {\n \"textDocument\": {\n \"uri\": \"file:///usr/app/index.ts\"\n },\n \"position\": {\n \"line\": 1,\n \"character\": 0\n }\n} /usr/app/index.ts",
"type": 4
}
[Trace - 04:01:11 PM] Received notification 'window/logMessage'.
Params: {
"message": "[tsclient] request {\n \"command\": \"documentHighlights\",\n \"seq\": 3,\n \"type\": \"request\",\n \"arguments\": {\n \"file\": \"/usr/app/index.ts\",\n \"line\": 2,\n \"offset\": 1,\n \"filesToSearch\": [\n \"/usr/app/index.ts\"\n ]\n }\n}",
"type": 4
}
[Trace - 04:01:11 PM] Received notification 'window/logMessage'.
Params: {
"message": "[tsclient] request {\n \"command\": \"geterr\",\n \"seq\": 4,\n \"type\": \"request\",\n \"arguments\": {\n \"delay\": 0,\n \"files\": [\n \"/usr/app/index.ts\"\n ]\n }\n}",
"type": 4
}
[Trace - 04:01:11 PM] Received notification 'window/logMessage'.
Params: {
"message": "[tsclient] processMessage {\n \"seq\": 0,\n \"type\": \"response\",\n \"command\": \"configure\",\n \"request_seq\": 1,\n \"success\": true\n}",
"type": 4
}
[Trace - 04:01:11 PM] Received notification 'window/logMessage'.
Params: {
"message": "[tsclient] request completed {\n \"request_seq\": 1,\n \"success\": true\n}",
"type": 4
}
[Trace - 04:01:12 PM] Received notification 'window/logMessage'.
Params: {
"message": "[tsclient] processMessage {\n \"seq\": 0,\n \"type\": \"response\",\n \"command\": \"documentHighlights\",\n \"request_seq\": 3,\n \"success\": true,\n \"body\": []\n}",
"type": 4
}
[Trace - 04:01:12 PM] Received notification 'window/logMessage'.
Params: {
"message": "[tsclient] request completed {\n \"request_seq\": 3,\n \"success\": true\n}",
"type": 4
}
[Trace - 04:01:12 PM] Received response 'textDocument/documentHighlight - (73)' in 710ms.
Result: []
[Trace - 04:01:12 PM] Received notification 'window/logMessage'.
Params: {
"message": "[tsclient] processMessage {\n \"seq\": 0,\n \"type\": \"event\",\n \"event\": \"typingsInstallerPid\",\n \"body\": {\n \"pid\": 4152\n }\n}",
"type": 4
}
[Trace - 04:01:12 PM] Received notification 'window/logMessage'.
Params: {
"message": "[lspserver] Ignored event {\n \"event\": \"typingsInstallerPid\"\n}",
"type": 4
}
[Trace - 04:01:12 PM] Received notification 'window/logMessage'.
Params: {
"message": "[tsclient] processMessage {\n \"seq\": 0,\n \"type\": \"event\",\n \"event\": \"syntaxDiag\",\n \"body\": {\n \"file\": \"/usr/app/index.ts\",\n \"diagnostics\": []\n }\n}",
"type": 4
}
[Trace - 04:01:12 PM] Received notification 'window/logMessage'.
Params: {
"message": "[tsclient] processMessage {\n \"seq\": 0,\n \"type\": \"event\",\n \"event\": \"semanticDiag\",\n \"body\": {\n \"file\": \"/usr/app/index.ts\",\n \"diagnostics\": []\n }\n}",
"type": 4
}
[Trace - 04:01:12 PM] Received notification 'window/logMessage'.
Params: {
"message": "[tsclient] processMessage {\n \"seq\": 0,\n \"type\": \"event\",\n \"event\": \"suggestionDiag\",\n \"body\": {\n \"file\": \"/usr/app/index.ts\",\n \"diagnostics\": []\n }\n}",
"type": 4
}
[Trace - 04:01:12 PM] Received notification 'window/logMessage'.
Params: {
"message": "[tsclient] processMessage {\n \"seq\": 0,\n \"type\": \"event\",\n \"event\": \"requestCompleted\",\n \"body\": {\n \"request_seq\": 4\n }\n}",
"type": 4
}
[Trace - 04:01:12 PM] Received notification 'window/logMessage'.
Params: {
"message": "[tsclient] request completed {\n \"request_seq\": 4,\n \"success\": true\n}",
"type": 4
}
[Trace - 04:01:12 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"diagnostics": [],
"uri": "file:///usr/app/index.ts"
}
[Trace - 04:01:12 PM] Sending request 'textDocument/codeAction - (74)'.
Params: {
"textDocument": {
"uri": "file:///usr/app/index.ts"
},
"range": {
"start": {
"line": 1,
"character": 0
},
"end": {
"line": 1,
"character": 0
}
},
"context": {
"diagnostics": []
}
}
[Trace - 04:01:12 PM] Received notification 'window/logMessage'.
Params: {
"message": "[lspserver] codeAction {\n \"textDocument\": {\n \"uri\": \"file:///usr/app/index.ts\"\n },\n \"range\": {\n \"start\": {\n \"line\": 1,\n \"character\": 0\n },\n \"end\": {\n \"line\": 1,\n \"character\": 0\n }\n },\n \"context\": {\n \"diagnostics\": []\n }\n} /usr/app/index.ts",
"type": 4
}
[Trace - 04:01:12 PM] Received notification 'window/logMessage'.
Params: {
"message": "[tsclient] request {\n \"command\": \"getCodeFixes\",\n \"seq\": 5,\n \"type\": \"request\",\n \"arguments\": {\n \"file\": \"/usr/app/index.ts\",\n \"startLine\": 2,\n \"startOffset\": 1,\n \"endLine\": 2,\n \"endOffset\": 1,\n \"errorCodes\": []\n }\n}",
"type": 4
}
[Trace - 04:01:12 PM] Received notification 'window/logMessage'.
Params: {
"message": "[tsclient] processMessage {\n \"seq\": 0,\n \"type\": \"response\",\n \"command\": \"getCodeFixes\",\n \"request_seq\": 5,\n \"success\": true,\n \"body\": []\n}",
"type": 4
}
[Trace - 04:01:12 PM] Received notification 'window/logMessage'.
Params: {
"message": "[tsclient] request completed {\n \"request_seq\": 5,\n \"success\": true\n}",
"type": 4
}
[Trace - 04:01:12 PM] Received notification 'window/logMessage'.
Params: {
"message": "[tsclient] request {\n \"command\": \"getApplicableRefactors\",\n \"seq\": 6,\n \"type\": \"request\",\n \"arguments\": {\n \"file\": \"/usr/app/index.ts\",\n \"startLine\": 2,\n \"startOffset\": 1,\n \"endLine\": 2,\n \"endOffset\": 1\n }\n}",
"type": 4
}
[Trace - 04:01:12 PM] Received notification 'window/logMessage'.
Params: {
"message": "[tsclient] processMessage {\n \"seq\": 0,\n \"type\": \"response\",\n \"command\": \"getApplicableRefactors\",\n \"request_seq\": 6,\n \"success\": true,\n \"body\": []\n}",
"type": 4
}
[Trace - 04:01:12 PM] Received notification 'window/logMessage'.
Params: {
"message": "[tsclient] request completed {\n \"request_seq\": 6,\n \"success\": true\n}",
"type": 4
}
[Trace - 04:01:12 PM] Received response 'textDocument/codeAction - (74)' in 42ms.
Result: []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment