{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/49170","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/49170/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/49170/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/49170/events","html_url":"https://github.com/Microsoft/vscode/issues/49170","id":320147739,"number":49170,"title":"Typescript services crash when opening JSX tags","user":{"login":"ChuckJonas","id":5217568,"avatar_url":"https://avatars1.githubusercontent.com/u/5217568?v=4","gravatar_id":"","url":"https://api.github.com/users/ChuckJonas","html_url":"https://github.com/ChuckJonas","followers_url":"https://api.github.com/users/ChuckJonas/followers","following_url":"https://api.github.com/users/ChuckJonas/following{/other_user}","gists_url":"https://api.github.com/users/ChuckJonas/gists{/gist_id}","starred_url":"https://api.github.com/users/ChuckJonas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChuckJonas/subscriptions","organizations_url":"https://api.github.com/users/ChuckJonas/orgs","repos_url":"https://api.github.com/users/ChuckJonas/repos","events_url":"https://api.github.com/users/ChuckJonas/events{/privacy}","received_events_url":"https://api.github.com/users/ChuckJonas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-04T03:59:52Z","updated_at":"2018-05-04T03:59:57Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nDo you have a question? Please ask it on https://stackoverflow.com/questions/tagged/vscode.\r\n\r\nFor bug reports, please fill in the details below. For feature requests, please describe the desired feature.\r\n-->\r\n\r\n<!-- Use Help > Report Issue to prefill these. -->\r\n- VSCode Version: 1.22.2\r\n- OS Version: osx 10.12.6\r\n\r\nSteps to Reproduce:\r\nI can't figure out the exact steps to reproduce, but it always happens when I'm editing JSX and typically happens more often once the JSX gets bigger and more complex. It most commonly occurs when I open a new tag. When there should just be a single `Expected corresponding JSX closing tag` error, instead, hundreds how errors are thrown and everything typescript language related stops work.  No formatting, code complete, etc.  Simply restarting `ts server` does not fix it.  Have to reload the program, which is super annoying because I typically have webpack dev server running in the vscode terminal.\r\n\r\n<img width=\"545\" alt=\"contactroletable_tsx_ _ids-contract-role-mgmt\" src=\"https://user-images.githubusercontent.com/5217568/39612479-2279aad6-4f1d-11e8-9b0b-ada0146d8ab9.png\">\r\n\r\n\r\n<!-- Launch with `code --disable-extensions` to check. -->\r\nDoes this issue occur when all extensions are disabled?: Yes/No\r\nYes (I think... need to double check but it happens very random so it's hard to reproduce)\r\n\r\nOutput from Typescript Console\r\n\r\n```\r\n[Error  - 9:34:06 PM] 'signatureHelp' request failed with error.\r\nError processing request. Debug Failure. Did not expect JsxExpression to have an Identifier in its trivia\r\nError: Debug Failure. Did not expect JsxExpression to have an Identifier in its trivia\r\n    at NodeObject.addSyntheticNodes (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:83665:34)\r\n    at NodeObject.createChildren (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:83729:22)\r\n    at NodeObject.getChildren (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:83749:22)\r\n    at getTokenAtPositionWorker (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:66283:43)\r\n    at getTokenAtPosition (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:66274:16)\r\n    at Object.findTokenOnLeftOfPosition (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:66308:31)\r\n    at Object.getSignatureHelpItems (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:75060:36)\r\n    at Object.getSignatureHelpItems (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:84729:37)\r\n    at IOSession.Session.getSignatureHelpItems (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:91641:62)\r\n    at Session.handlers.ts.createMapFromTemplate._a.(anonymous function) (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:90663:61)\r\n    at /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:92067:88\r\n    at IOSession.Session.executeWithRequestId (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:92058:28)\r\n    at IOSession.Session.executeCommand (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:92067:33)\r\n    at IOSession.Session.onMessage (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:92087:35)\r\n    at Interface.<anonymous> (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:93288:27)\r\n    at emitOne (events.js:96:13)\r\n    at Interface.emit (events.js:191:7)\r\n    at Interface._onLine (readline.js:241:10)\r\n    at Interface._normalWrite (readline.js:384:12)\r\n    at Socket.ondata (readline.js:101:10)\r\n    at emitOne (events.js:96:13)\r\n    at Socket.emit (events.js:191:7)\r\n    at readableAddChunk (_stream_readable.js:178:18)\r\n    at Socket.Readable.push (_stream_readable.js:136:10)\r\n    at Pipe.onread (net.js:560:20)\r\n```"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/comments/386500403","html_url":"https://github.com/Microsoft/vscode/issues/49170#issuecomment-386500403","issue_url":"https://api.github.com/repos/Microsoft/vscode/issues/49170","id":386500403,"user":{"login":"vscodebot[bot]","id":28792856,"avatar_url":"https://avatars2.githubusercontent.com/in/2406?v=4","gravatar_id":"","url":"https://api.github.com/users/vscodebot%5Bbot%5D","html_url":"https://github.com/apps/vscodebot","followers_url":"https://api.github.com/users/vscodebot%5Bbot%5D/followers","following_url":"https://api.github.com/users/vscodebot%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/vscodebot%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/vscodebot%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vscodebot%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/vscodebot%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/vscodebot%5Bbot%5D/repos","events_url":"https://api.github.com/users/vscodebot%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/vscodebot%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2018-05-04T03:59:57Z","updated_at":"2018-05-04T03:59:57Z","author_association":"NONE","body":"(Experimental duplicate detection)\nThanks for submitting this issue. Please also check if it is already covered by an existing one, like:\n- [TypeScript: occurrences request failed with error (#47470)](https://www.github.com/Microsoft/vscode/issues/47470) <!-- score: 0.801 -->\n- [Extensions tab not responding (#46246)](https://www.github.com/Microsoft/vscode/issues/46246) <!-- score: 0.755 -->\n- [Language client is not ready yet (#46626)](https://www.github.com/Microsoft/vscode/issues/46626) <!-- score: 0.749 -->\n- [TypeError: Cannot read property 'set' of undefined (#48496)](https://www.github.com/Microsoft/vscode/issues/48496) <!-- score: 0.691 -->\n- [TypeError: Cannot read property 'inputBox' of undefined (#48523)](https://www.github.com/Microsoft/vscode/issues/48523) <!-- score: 0.688 -->\n<!-- potential_duplicates_comment -->"}}
{"actor":{"display_login":"vscodebot"}}