{"action":"created","issue":{"url":"https://api.github.com/repos/vshaxe/vshaxe/issues/292","repository_url":"https://api.github.com/repos/vshaxe/vshaxe","labels_url":"https://api.github.com/repos/vshaxe/vshaxe/issues/292/labels{/name}","comments_url":"https://api.github.com/repos/vshaxe/vshaxe/issues/292/comments","events_url":"https://api.github.com/repos/vshaxe/vshaxe/issues/292/events","html_url":"https://github.com/vshaxe/vshaxe/issues/292","id":359477222,"node_id":"MDU6SXNzdWUzNTk0NzcyMjI=","number":292,"title":"Completion of enums in switch","user":{"login":"ncannasse","id":1022912,"node_id":"MDQ6VXNlcjEwMjI5MTI=","avatar_url":"https://avatars2.githubusercontent.com/u/1022912?v=4","gravatar_id":"","url":"https://api.github.com/users/ncannasse","html_url":"https://github.com/ncannasse","followers_url":"https://api.github.com/users/ncannasse/followers","following_url":"https://api.github.com/users/ncannasse/following{/other_user}","gists_url":"https://api.github.com/users/ncannasse/gists{/gist_id}","starred_url":"https://api.github.com/users/ncannasse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncannasse/subscriptions","organizations_url":"https://api.github.com/users/ncannasse/orgs","repos_url":"https://api.github.com/users/ncannasse/repos","events_url":"https://api.github.com/users/ncannasse/events{/privacy}","received_events_url":"https://api.github.com/users/ncannasse/received_events","type":"User","site_admin":false},"labels":[{"id":527383785,"node_id":"MDU6TGFiZWw1MjczODM3ODU=","url":"https://api.github.com/repos/vshaxe/vshaxe/labels/code-generation","name":"code-generation","color":"fbca04","default":false},{"id":434215727,"node_id":"MDU6TGFiZWw0MzQyMTU3Mjc=","url":"https://api.github.com/repos/vshaxe/vshaxe/labels/completion","name":"completion","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-09-12T13:20:46Z","updated_at":"2018-10-18T15:30:08Z","closed_at":null,"author_association":"MEMBER","body":"When completing a switch case, constructors are now correctly inserted which is good:\r\n\r\n```haxe\r\nswitch( t ) {\r\ncase TInt: ...\r\ncase TIns|   --> becomes   case TInst(c|,args):\r\n}\r\n```\r\n\r\nHowever the cursor seems to be set after the first argument whereas when there is no argument it's correctly set after the semicolon `:`\r\n\r\nPS: I now about `t.switch` completion, just want also the single case completion to slightly improve :)\r\n"},"comment":{"url":"https://api.github.com/repos/vshaxe/vshaxe/issues/comments/431054559","html_url":"https://github.com/vshaxe/vshaxe/issues/292#issuecomment-431054559","issue_url":"https://api.github.com/repos/vshaxe/vshaxe/issues/292","id":431054559,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTA1NDU1OQ==","user":{"login":"Gama11","id":2620907,"node_id":"MDQ6VXNlcjI2MjA5MDc=","avatar_url":"https://avatars0.githubusercontent.com/u/2620907?v=4","gravatar_id":"","url":"https://api.github.com/users/Gama11","html_url":"https://github.com/Gama11","followers_url":"https://api.github.com/users/Gama11/followers","following_url":"https://api.github.com/users/Gama11/following{/other_user}","gists_url":"https://api.github.com/users/Gama11/gists{/gist_id}","starred_url":"https://api.github.com/users/Gama11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gama11/subscriptions","organizations_url":"https://api.github.com/users/Gama11/orgs","repos_url":"https://api.github.com/users/Gama11/repos","events_url":"https://api.github.com/users/Gama11/events{/privacy}","received_events_url":"https://api.github.com/users/Gama11/received_events","type":"User","site_admin":false},"created_at":"2018-10-18T15:30:08Z","updated_at":"2018-10-18T15:30:08Z","author_association":"MEMBER","body":"Having `:` as a commit character doesn't seem like a good idea, you end up with this (similar to how you end up with double parentheses in the other case). :D\r\n\r\n![](https://i.imgur.com/3ObleWY.gif)\r\n\r\nMaybe snippet insertion simply doesn't play well with custom commit characters.. Anyway, we can just disallow `(` , that's probably good enough."}}
{"actor":{"display_login":"Gama11"}}