{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript-TmLanguage/issues/522","repository_url":"https://api.github.com/repos/Microsoft/TypeScript-TmLanguage","labels_url":"https://api.github.com/repos/Microsoft/TypeScript-TmLanguage/issues/522/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript-TmLanguage/issues/522/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript-TmLanguage/issues/522/events","html_url":"https://github.com/Microsoft/TypeScript-TmLanguage/issues/522","id":259571186,"node_id":"MDU6SXNzdWUyNTk1NzExODY=","number":522,"title":"Support option chaining syntax highlighting","user":{"login":"mjbvz","id":12821956,"node_id":"MDQ6VXNlcjEyODIxOTU2","avatar_url":"https://avatars2.githubusercontent.com/u/12821956?v=4","gravatar_id":"","url":"https://api.github.com/users/mjbvz","html_url":"https://github.com/mjbvz","followers_url":"https://api.github.com/users/mjbvz/followers","following_url":"https://api.github.com/users/mjbvz/following{/other_user}","gists_url":"https://api.github.com/users/mjbvz/gists{/gist_id}","starred_url":"https://api.github.com/users/mjbvz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjbvz/subscriptions","organizations_url":"https://api.github.com/users/mjbvz/orgs","repos_url":"https://api.github.com/users/mjbvz/repos","events_url":"https://api.github.com/users/mjbvz/events{/privacy}","received_events_url":"https://api.github.com/users/mjbvz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-09-21T17:20:37Z","updated_at":"2018-07-23T11:39:21Z","closed_at":"2017-12-22T21:16:01Z","author_association":"CONTRIBUTOR","body":"**[TS and JS Grammar Extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode.typescript-javascript-grammar) version:**  0.0.22 / latest\r\n\r\nFrom https://github.com/Microsoft/vscode/issues/34776#event-1259771216\r\n\r\n**Feature request** \r\nSupport highlighting the proposed [option chaining](https://github.com/tc39/proposal-optional-chaining) syntax for JS/TS\r\n\r\n```ts\r\nconst a = {\r\n  b: {\r\n    c: {\r\n      d: {\r\n        e: 1,\r\n        g: [1, 2, 3],\r\n      },\r\n    },\r\n    f: null,\r\n  },\r\n};\r\n\r\nconst brokenSyntaxHighlighting = () => {\r\n  const array = a?.b?.c?.d?.g;\r\n\r\n  /**\r\n   * No TypeEror, but syntax highlighting is broken\r\n   */\r\n  const test = a?.b?.f?.f;\r\n\r\n  for (let i = 0; i < array.length; i++) {\r\n    console.log(array[i]);\r\n  }\r\n};\r\n\r\nbrokenSyntaxHighlighting();\r\n```\r\n\r\n![30707451-31af05c4-9f04-11e7-9b4f-12e6ff3ad2f8](https://user-images.githubusercontent.com/12821956/30709245-72ca5908-9eb6-11e7-8a41-5ecba2d79816.png)\r\n\r\n\r\nTS support for this is tracked by: https://github.com/Microsoft/TypeScript/issues/16\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript-TmLanguage/issues/comments/407028304","html_url":"https://github.com/Microsoft/TypeScript-TmLanguage/issues/522#issuecomment-407028304","issue_url":"https://api.github.com/repos/Microsoft/TypeScript-TmLanguage/issues/522","id":407028304,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzAyODMwNA==","user":{"login":"mehulmpt","id":10388889,"node_id":"MDQ6VXNlcjEwMzg4ODg5","avatar_url":"https://avatars2.githubusercontent.com/u/10388889?v=4","gravatar_id":"","url":"https://api.github.com/users/mehulmpt","html_url":"https://github.com/mehulmpt","followers_url":"https://api.github.com/users/mehulmpt/followers","following_url":"https://api.github.com/users/mehulmpt/following{/other_user}","gists_url":"https://api.github.com/users/mehulmpt/gists{/gist_id}","starred_url":"https://api.github.com/users/mehulmpt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mehulmpt/subscriptions","organizations_url":"https://api.github.com/users/mehulmpt/orgs","repos_url":"https://api.github.com/users/mehulmpt/repos","events_url":"https://api.github.com/users/mehulmpt/events{/privacy}","received_events_url":"https://api.github.com/users/mehulmpt/received_events","type":"User","site_admin":false},"created_at":"2018-07-23T11:39:21Z","updated_at":"2018-07-23T11:39:21Z","author_association":"NONE","body":"Well currently you can sort of get around this by disabling VSCode's internal javascript linter and using something like eslint, but obviously you lose some features of vscode linter like dimming of unused variables/imports, etc."}}
{"actor":{"display_login":"mehulmpt"}}