Skip to content

Instantly share code, notes, and snippets.

@christianalfoni
Last active January 15, 2020 12:55
Show Gist options
  • Save christianalfoni/960acfebc401c274ef20c715baf7c5dc to your computer and use it in GitHub Desktop.
Save christianalfoni/960acfebc401c274ef20c715baf7c5dc to your computer and use it in GitHub Desktop.
OUT {
"seq": 0,
"type": "response",
"command": "configure",
"request_seq": 0,
"success": true
}
OUT {
"seq": 0,
"type": "response",
"command": "compilerOptionsForInferredProjects",
"request_seq": 1,
"success": true,
"body": true
}
OUT {
"seq": 0,
"type": "response",
"command": "updateOpen",
"request_seq": 1,
"success": true,
"body": true
}
OUT {
"seq": 0,
"type": "response",
"command": "configure",
"request_seq": 2,
"success": true
}
OUT {
"seq": 0,
"type": "response",
"command": "getOutliningSpans",
"request_seq": 3,
"success": true,
"body": []
}
OUT {
"seq": 0,
"type": "response",
"command": "updateOpen",
"request_seq": 2,
"success": true,
"body": true
}
OUT {
"seq": 0,
"type": "response",
"command": "getSupportedCodeFixes",
"request_seq": 4,
"success": true,
"body": [
"2352",
"2356",
"2362",
...
]
}
OUT {
"seq": 0,
"type": "response",
"command": "configure",
"request_seq": 5,
"success": true
}
IN {
"seq": 5,
"type": "request",
"command": "configure",
"arguments": {
"file": "/sandbox/index.js",
"formatOptions": {
"tabSize": 2,
"indentSize": 2,
"convertTabsToSpaces": true,
"newLineCharacter": "\n",
"insertSpaceAfterCommaDelimiter": true,
"insertSpaceAfterConstructor": false,
"insertSpaceAfterSemicolonInForStatements": true,
"insertSpaceBeforeAndAfterBinaryOperators": true,
"insertSpaceAfterKeywordsInControlFlowStatements": true,
"insertSpaceAfterFunctionKeywordForAnonymousFunctions": true,
"insertSpaceBeforeFunctionParenthesis": false,
"insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": false,
"insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": false,
"insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true,
"insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": false,
"insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": false,
"placeOpenBraceOnNewLineForFunctions": false,
"placeOpenBraceOnNewLineForControlBlocks": false
},
"preferences": {
"quotePreference": "auto",
"allowTextChangesInNewFiles": true,
"providePrefixAndSuffixTextForRename": true,
"allowRenameOfImportPath": true
}
}
}
OUT {
"seq": 0,
"type": "event",
"event": "typingsInstallerPid",
"body": {}
}
OUT {
"seq": 0,
"type": "event",
"event": "syntaxDiag",
"body": {
"file": "/sandbox/index.js",
"diagnostics": []
}
}
IN {
"seq": 6,
"type": "request",
"command": "getApplicableRefactors",
"arguments": {
"file": "/sandbox/index.js",
"startLine": 1,
"startOffset": 1,
"endLine": 1,
"endOffset": 1
}
}
OUT {
"seq": 0,
"type": "response",
"command": "getApplicableRefactors",
"request_seq": 6,
"success": true,
"body": []
}
OUT {
"seq": 0,
"type": "event",
"event": "semanticDiag",
"body": {
"file": "/sandbox/index.js",
"diagnostics": []
}
}
OUT {
"seq": 0,
"type": "event",
"event": "requestCompleted",
"body": {
"request_seq": 3
}
}
IN {
"seq": 7,
"type": "request",
"command": "geterr",
"arguments": {
"delay": 0,
"files": [
"/sandbox/index.js"
]
}
}
OUT {
"seq": 0,
"type": "event",
"event": "syntaxDiag",
"body": {
"file": "/sandbox/index.js",
"diagnostics": []
}
}
OUT {
"seq": 0,
"type": "event",
"event": "semanticDiag",
"body": {
"file": "/sandbox/index.js",
"diagnostics": []
}
}
OUT {
"seq": 0,
"type": "event",
"event": "suggestionDiag",
"body": {
"file": "/sandbox/index.js",
"diagnostics": [
{
"start": {
"line": 1,
"offset": 7
},
"end": {
"line": 1,
"offset": 10
},
"text": "'foo' is declared but its value is never read.",
"code": 6133,
"category": "suggestion",
"reportsUnnecessary": true
},
{
"start": {
"line": 1,
"offset": 13
},
"end": {
"line": 1,
"offset": 29
},
"text": "File is a CommonJS module; it may be converted to an ES6 module.",
"code": 80001,
"category": "suggestion"
}
]
}
}
OUT {
"seq": 0,
"type": "event",
"event": "requestCompleted",
"body": {
"request_seq": 7
}
}
OUT {
"seq": 0,
"type": "event",
"event": "projectsUpdatedInBackground",
"body": {
"openFiles": [
"/sandbox/index.js"
]
}
}
IN {
"seq": 8,
"type": "request",
"command": "geterr",
"arguments": {
"delay": 0,
"files": [
"/sandbox/index.js"
]
}
}
OUT {
"seq": 0,
"type": "event",
"event": "syntaxDiag",
"body": {
"file": "/sandbox/index.js",
"diagnostics": []
}
}
OUT {
"seq": 0,
"type": "event",
"event": "semanticDiag",
"body": {
"file": "/sandbox/index.js",
"diagnostics": []
}
}
OUT {
"seq": 0,
"type": "event",
"event": "suggestionDiag",
"body": {
"file": "/sandbox/index.js",
"diagnostics": [
{
"start": {
"line": 1,
"offset": 7
},
"end": {
"line": 1,
"offset": 10
},
"text": "'foo' is declared but its value is never read.",
"code": 6133,
"category": "suggestion",
"reportsUnnecessary": true
},
{
"start": {
"line": 1,
"offset": 13
},
"end": {
"line": 1,
"offset": 29
},
"text": "File is a CommonJS module; it may be converted to an ES6 module.",
"code": 80001,
"category": "suggestion"
}
]
}
}
OUT {
"seq": 0,
"type": "event",
"event": "requestCompleted",
"body": {
"request_seq": 8
}
}
IN {
"seq": 9,
"type": "request",
"command": "getApplicableRefactors",
"arguments": {
"file": "/sandbox/index.js",
"startLine": 1,
"startOffset": 1,
"endLine": 1,
"endOffset": 1
}
}
OUT {
"seq": 0,
"type": "response",
"command": "getApplicableRefactors",
"request_seq": 9,
"success": true,
"body": []
}
OUT NO CONTENT LENGTH {
"projectName": "/dev/null/inferredProject1*",
"typeAcquisition": {
"enable": true,
"include": [],
"exclude": []
},
"compilerOptions": {
"module": 1,
"target": 3,
"jsx": 1,
"allowJs": true,
"allowSyntheticDefaultImports": true,
"allowNonTsExtensions": true,
"noEmitForJsFiles": true,
"maxNodeModuleJsDepth": 2
},
"typings": [],
"unresolvedImports": [],
"kind": "action::set"
}
OUT {
"seq": 0,
"type": "event",
"event": "setTypings",
"body": {
"projectName": "/dev/null/inferredProject1*",
"typeAcquisition": {
"enable": true,
"include": [],
"exclude": []
},
"compilerOptions": {
"module": 1,
"target": 3,
"jsx": 1,
"allowJs": true,
"allowSyntheticDefaultImports": true,
"allowNonTsExtensions": true,
"noEmitForJsFiles": true,
"maxNodeModuleJsDepth": 2
},
"typings": [],
"unresolvedImports": [],
"kind": "action::set"
}
}
OUT {
"seq": 0,
"type": "event",
"event": "projectsUpdatedInBackground",
"body": {
"openFiles": [
"/sandbox/index.js"
]
}
}
IN {
"seq": 10,
"type": "request",
"command": "geterr",
"arguments": {
"delay": 0,
"files": [
"/sandbox/index.js"
]
}
}
OUT {
"seq": 0,
"type": "event",
"event": "syntaxDiag",
"body": {
"file": "/sandbox/index.js",
"diagnostics": []
}
}
OUT {
"seq": 0,
"type": "event",
"event": "semanticDiag",
"body": {
"file": "/sandbox/index.js",
"diagnostics": []
}
}
OUT {
"seq": 0,
"type": "event",
"event": "suggestionDiag",
"body": {
"file": "/sandbox/index.js",
"diagnostics": [
{
"start": {
"line": 1,
"offset": 7
},
"end": {
"line": 1,
"offset": 10
},
"text": "'foo' is declared but its value is never read.",
"code": 6133,
"category": "suggestion",
"reportsUnnecessary": true
},
{
"start": {
"line": 1,
"offset": 13
},
"end": {
"line": 1,
"offset": 29
},
"text": "File is a CommonJS module; it may be converted to an ES6 module.",
"code": 80001,
"category": "suggestion"
}
]
}
}
OUT {
"seq": 0,
"type": "event",
"event": "requestCompleted",
"body": {
"request_seq": 10
}
}
IN {
"seq": 0,
"type": "request",
"command": "configure",
"arguments": {
"hostInfo": "vscode",
"preferences": {
"providePrefixAndSuffixTextForRename": true,
"allowRenameOfImportPath": true
}
}
}
OUT {
"seq": 0,
"type": "response",
"command": "configure",
"request_seq": 0,
"success": true
}
IN {
"seq": 1,
"type": "request",
"command": "updateOpen",
"arguments": {
"changedFiles": [],
"closedFiles": [],
"openFiles": [
{
"file": "/sandbox/index.js",
"fileContent": "const foo = require(\"./foo\");\n",
"scriptKindName": "JS",
"projectRootPath": "/sandbox"
}
]
}
}
IN {
"seq": 0,
"type": "request",
"command": "configure",
"arguments": {
"hostInfo": "vscode",
"preferences": {
"providePrefixAndSuffixTextForRename": true,
"allowRenameOfImportPath": true
}
}
}
IN {
"seq": 1,
"type": "request",
"command": "compilerOptionsForInferredProjects",
"arguments": {
"options": {
"module": "commonjs",
"target": "es2016",
"jsx": "preserve",
"allowJs": true,
"allowSyntheticDefaultImports": true,
"allowNonTsExtensions": true
}
}
}
IN {
"seq": 2,
"type": "request",
"command": "updateOpen",
"arguments": {
"changedFiles": [],
"closedFiles": [],
"openFiles": [
{
"file": "/sandbox/index.js",
"fileContent": "const foo = require(\"./foo\");\n",
"scriptKindName": "JS",
"projectRootPath": "/sandbox"
}
]
}
}
IN {
"seq": 3,
"type": "request",
"command": "geterr",
"arguments": {
"delay": 0,
"files": [
"/sandbox/index.js"
]
}
}
IN {
"seq": 4,
"type": "request",
"command": "getSupportedCodeFixes",
"arguments": null
}
IN {
"seq": 2,
"type": "request",
"command": "configure",
"arguments": {
"file": "/sandbox/index.js",
"formatOptions": {
"tabSize": 2,
"indentSize": 2,
"convertTabsToSpaces": true,
"newLineCharacter": "\n",
"insertSpaceAfterCommaDelimiter": true,
"insertSpaceAfterConstructor": false,
"insertSpaceAfterSemicolonInForStatements": true,
"insertSpaceBeforeAndAfterBinaryOperators": true,
"insertSpaceAfterKeywordsInControlFlowStatements": true,
"insertSpaceAfterFunctionKeywordForAnonymousFunctions": true,
"insertSpaceBeforeFunctionParenthesis": false,
"insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": false,
"insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": false,
"insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true,
"insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": false,
"insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": false,
"placeOpenBraceOnNewLineForFunctions": false,
"placeOpenBraceOnNewLineForControlBlocks": false
},
"preferences": {
"quotePreference": "auto",
"allowTextChangesInNewFiles": true,
"providePrefixAndSuffixTextForRename": true,
"allowRenameOfImportPath": true
}
}
}
OUT {
"seq": 0,
"type": "response",
"command": "configure",
"request_seq": 0,
"success": true
}
OUT {
"seq": 0,
"type": "response",
"command": "updateOpen",
"request_seq": 1,
"success": true,
"body": true
}
OUT {
"seq": 0,
"type": "response",
"command": "configure",
"request_seq": 2,
"success": true
}
IN {
"seq": 3,
"type": "request",
"command": "getOutliningSpans",
"arguments": {
"file": "/sandbox/index.js"
}
}
OUT {
"seq": 0,
"type": "response",
"command": "getOutliningSpans",
"request_seq": 3,
"success": true,
"body": []
}
OUT {
"seq": 0,
"type": "response",
"command": "compilerOptionsForInferredProjects",
"request_seq": 1,
"success": true,
"body": true
}
OUT {
"seq": 0,
"type": "response",
"command": "updateOpen",
"request_seq": 2,
"success": true,
"body": true
}
OUT {
"seq": 0,
"type": "response",
"command": "getSupportedCodeFixes",
"request_seq": 4,
"success": true,
"body": [
"2352",
"2356",
"2362",
...
]
}
IN {
"seq": 5,
"type": "request",
"command": "configure",
"arguments": {
"file": "/sandbox/index.js",
"formatOptions": {
"tabSize": 2,
"indentSize": 2,
"convertTabsToSpaces": true,
"newLineCharacter": "\n",
"insertSpaceAfterCommaDelimiter": true,
"insertSpaceAfterConstructor": false,
"insertSpaceAfterSemicolonInForStatements": true,
"insertSpaceBeforeAndAfterBinaryOperators": true,
"insertSpaceAfterKeywordsInControlFlowStatements": true,
"insertSpaceAfterFunctionKeywordForAnonymousFunctions": true,
"insertSpaceBeforeFunctionParenthesis": false,
"insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": false,
"insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": false,
"insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true,
"insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": false,
"insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": false,
"placeOpenBraceOnNewLineForFunctions": false,
"placeOpenBraceOnNewLineForControlBlocks": false
},
"preferences": {
"quotePreference": "auto",
"allowTextChangesInNewFiles": true,
"providePrefixAndSuffixTextForRename": true,
"allowRenameOfImportPath": true
}
}
}
OUT {
"seq": 0,
"type": "event",
"event": "typingsInstallerPid",
"body": {
"pid": 91127
}
}
OUT {
"seq": 0,
"type": "event",
"event": "projectsUpdatedInBackground",
"body": {
"openFiles": [
"/sandbox/index.js"
]
}
}
OUT {
"seq": 0,
"type": "event",
"event": "syntaxDiag",
"body": {
"file": "/sandbox/index.js",
"diagnostics": []
}
}
OUT {
"seq": 0,
"type": "event",
"event": "semanticDiag",
"body": {
"file": "/sandbox/index.js",
"diagnostics": []
}
}
OUT {
"seq": 0,
"type": "response",
"command": "configure",
"request_seq": 5,
"success": true
}
IN {
"seq": 6,
"type": "request",
"command": "getApplicableRefactors",
"arguments": {
"file": "/sandbox/index.js",
"startLine": 1,
"startOffset": 1,
"endLine": 1,
"endOffset": 1
}
}
OUT {
"seq": 0,
"type": "event",
"event": "suggestionDiag",
"body": {
"file": "/sandbox/index.js",
"diagnostics": [
{
"start": {
"line": 1,
"offset": 7
},
"end": {
"line": 1,
"offset": 10
},
"text": "'foo' is declared but its value is never read.",
"code": 6133,
"category": "suggestion",
"reportsUnnecessary": true
},
{
"start": {
"line": 1,
"offset": 13
},
"end": {
"line": 1,
"offset": 29
},
"text": "File is a CommonJS module; it may be converted to an ES6 module.",
"code": 80001,
"category": "suggestion"
}
]
}
}
OUT {
"seq": 0,
"type": "event",
"event": "requestCompleted",
"body": {
"request_seq": 3
}
}
OUT {
"seq": 0,
"type": "response",
"command": "getApplicableRefactors",
"request_seq": 6,
"success": true,
"body": []
}
IN {
"seq": 7,
"type": "request",
"command": "geterr",
"arguments": {
"delay": 0,
"files": [
"/sandbox/index.js"
]
}
}
OUT {
"seq": 0,
"type": "event",
"event": "syntaxDiag",
"body": {
"file": "/sandbox/index.js",
"diagnostics": []
}
}
OUT {
"seq": 0,
"type": "event",
"event": "semanticDiag",
"body": {
"file": "/sandbox/index.js",
"diagnostics": []
}
}
OUT {
"seq": 0,
"type": "event",
"event": "suggestionDiag",
"body": {
"file": "/sandbox/index.js",
"diagnostics": [
{
"start": {
"line": 1,
"offset": 7
},
"end": {
"line": 1,
"offset": 10
},
"text": "'foo' is declared but its value is never read.",
"code": 6133,
"category": "suggestion",
"reportsUnnecessary": true
},
{
"start": {
"line": 1,
"offset": 13
},
"end": {
"line": 1,
"offset": 29
},
"text": "File is a CommonJS module; it may be converted to an ES6 module.",
"code": 80001,
"category": "suggestion"
}
]
}
}
OUT {
"seq": 0,
"type": "event",
"event": "requestCompleted",
"body": {
"request_seq": 7
}
}
IN {
"seq": 8,
"type": "request",
"command": "geterr",
"arguments": {
"delay": 0,
"files": [
"/sandbox/index.js"
]
}
}
OUT {
"seq": 0,
"type": "event",
"event": "syntaxDiag",
"body": {
"file": "/sandbox/index.js",
"diagnostics": []
}
}
OUT {
"seq": 0,
"type": "event",
"event": "semanticDiag",
"body": {
"file": "/sandbox/index.js",
"diagnostics": []
}
}
OUT {
"seq": 0,
"type": "event",
"event": "suggestionDiag",
"body": {
"file": "/sandbox/index.js",
"diagnostics": [
{
"start": {
"line": 1,
"offset": 7
},
"end": {
"line": 1,
"offset": 10
},
"text": "'foo' is declared but its value is never read.",
"code": 6133,
"category": "suggestion",
"reportsUnnecessary": true
},
{
"start": {
"line": 1,
"offset": 13
},
"end": {
"line": 1,
"offset": 29
},
"text": "File is a CommonJS module; it may be converted to an ES6 module.",
"code": 80001,
"category": "suggestion"
}
]
}
}
OUT {
"seq": 0,
"type": "event",
"event": "requestCompleted",
"body": {
"request_seq": 8
}
}
IN {
"seq": 9,
"type": "request",
"command": "getApplicableRefactors",
"arguments": {
"file": "/sandbox/index.js",
"startLine": 1,
"startOffset": 1,
"endLine": 1,
"endOffset": 1
}
}
OUT {
"seq": 0,
"type": "response",
"command": "getApplicableRefactors",
"request_seq": 9,
"success": true,
"body": []
}
OUT {
"seq": 0,
"type": "event",
"event": "setTypings",
"body": {
"projectName": "/dev/null/inferredProject1*",
"typeAcquisition": {
"enable": true,
"include": [],
"exclude": []
},
"compilerOptions": {
"target": 1,
"jsx": 1,
"allowNonTsExtensions": true,
"allowJs": true,
"noEmitForJsFiles": true,
"maxNodeModuleJsDepth": 2
},
"typings": [],
"unresolvedImports": [],
"kind": "action::set"
}
}
OUT {
"seq": 0,
"type": "event",
"event": "projectsUpdatedInBackground",
"body": {
"openFiles": [
"/sandbox/index.js"
]
}
}
IN {
"seq": 10,
"type": "request",
"command": "geterr",
"arguments": {
"delay": 0,
"files": [
"/sandbox/index.js"
]
}
}
OUT {
"seq": 0,
"type": "event",
"event": "syntaxDiag",
"body": {
"file": "/sandbox/index.js",
"diagnostics": []
}
}
OUT {
"seq": 0,
"type": "event",
"event": "semanticDiag",
"body": {
"file": "/sandbox/index.js",
"diagnostics": []
}
}
OUT {
"seq": 0,
"type": "event",
"event": "suggestionDiag",
"body": {
"file": "/sandbox/index.js",
"diagnostics": [
{
"start": {
"line": 1,
"offset": 7
},
"end": {
"line": 1,
"offset": 10
},
"text": "'foo' is declared but its value is never read.",
"code": 6133,
"category": "suggestion",
"reportsUnnecessary": true
},
{
"start": {
"line": 1,
"offset": 13
},
"end": {
"line": 1,
"offset": 29
},
"text": "File is a CommonJS module; it may be converted to an ES6 module.",
"code": 80001,
"category": "suggestion"
}
]
}
}
OUT {
"seq": 0,
"type": "event",
"event": "requestCompleted",
"body": {
"request_seq": 10
}
}
OUT {
"seq": 0,
"type": "event",
"event": "setTypings",
"body": {
"projectName": "/dev/null/inferredProject1*",
"typeAcquisition": {
"enable": true,
"include": [],
"exclude": []
},
"compilerOptions": {
"module": 1,
"target": 3,
"jsx": 1,
"allowJs": true,
"allowSyntheticDefaultImports": true,
"allowNonTsExtensions": true,
"noEmitForJsFiles": true,
"maxNodeModuleJsDepth": 2
},
"typings": [],
"unresolvedImports": [],
"kind": "action::set"
}
}
OUT {
"seq": 0,
"type": "event",
"event": "projectsUpdatedInBackground",
"body": {
"openFiles": [
"/sandbox/index.js"
]
}
}
IN {
"seq": 11,
"type": "request",
"command": "geterr",
"arguments": {
"delay": 0,
"files": [
"/sandbox/index.js"
]
}
}
OUT {
"seq": 0,
"type": "event",
"event": "syntaxDiag",
"body": {
"file": "/sandbox/index.js",
"diagnostics": []
}
}
OUT {
"seq": 0,
"type": "event",
"event": "semanticDiag",
"body": {
"file": "/sandbox/index.js",
"diagnostics": []
}
}
OUT {
"seq": 0,
"type": "event",
"event": "suggestionDiag",
"body": {
"file": "/sandbox/index.js",
"diagnostics": [
{
"start": {
"line": 1,
"offset": 7
},
"end": {
"line": 1,
"offset": 10
},
"text": "'foo' is declared but its value is never read.",
"code": 6133,
"category": "suggestion",
"reportsUnnecessary": true
},
{
"start": {
"line": 1,
"offset": 13
},
"end": {
"line": 1,
"offset": 29
},
"text": "File is a CommonJS module; it may be converted to an ES6 module.",
"code": 80001,
"category": "suggestion"
}
]
}
}
OUT {
"seq": 0,
"type": "event",
"event": "requestCompleted",
"body": {
"request_seq": 11
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment