{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/633","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/633/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/633/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/633/events","html_url":"https://github.com/Microsoft/vscode/pull/633","id":118873382,"number":633,"title":"[TypeScript] Bug fixes #297 snippet on method suggest","user":{"login":"moostad","id":10362398,"avatar_url":"https://avatars.githubusercontent.com/u/10362398?v=3","gravatar_id":"","url":"https://api.github.com/users/moostad","html_url":"https://github.com/moostad","followers_url":"https://api.github.com/users/moostad/followers","following_url":"https://api.github.com/users/moostad/following{/other_user}","gists_url":"https://api.github.com/users/moostad/gists{/gist_id}","starred_url":"https://api.github.com/users/moostad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moostad/subscriptions","organizations_url":"https://api.github.com/users/moostad/orgs","repos_url":"https://api.github.com/users/moostad/repos","events_url":"https://api.github.com/users/moostad/events{/privacy}","received_events_url":"https://api.github.com/users/moostad/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/vscode/labels/cla-signed","name":"cla-signed","color":"009800"},{"url":"https://api.github.com/repos/Microsoft/vscode/labels/typescript","name":"typescript","color":"c7def8"}],"state":"closed","locked":false,"assignee":{"login":"dbaeumer","id":1931590,"avatar_url":"https://avatars.githubusercontent.com/u/1931590?v=3","gravatar_id":"","url":"https://api.github.com/users/dbaeumer","html_url":"https://github.com/dbaeumer","followers_url":"https://api.github.com/users/dbaeumer/followers","following_url":"https://api.github.com/users/dbaeumer/following{/other_user}","gists_url":"https://api.github.com/users/dbaeumer/gists{/gist_id}","starred_url":"https://api.github.com/users/dbaeumer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbaeumer/subscriptions","organizations_url":"https://api.github.com/users/dbaeumer/orgs","repos_url":"https://api.github.com/users/dbaeumer/repos","events_url":"https://api.github.com/users/dbaeumer/events{/privacy}","received_events_url":"https://api.github.com/users/dbaeumer/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Microsoft/vscode/milestones/8","html_url":"https://github.com/Microsoft/vscode/milestones/Backlog","labels_url":"https://api.github.com/repos/Microsoft/vscode/milestones/8/labels","id":1412124,"number":8,"title":"Backlog","description":"Work not yet planned for a specific release.","creator":{"login":"chrisdias","id":1487073,"avatar_url":"https://avatars.githubusercontent.com/u/1487073?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisdias","html_url":"https://github.com/chrisdias","followers_url":"https://api.github.com/users/chrisdias/followers","following_url":"https://api.github.com/users/chrisdias/following{/other_user}","gists_url":"https://api.github.com/users/chrisdias/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisdias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisdias/subscriptions","organizations_url":"https://api.github.com/users/chrisdias/orgs","repos_url":"https://api.github.com/users/chrisdias/repos","events_url":"https://api.github.com/users/chrisdias/events{/privacy}","received_events_url":"https://api.github.com/users/chrisdias/received_events","type":"User","site_admin":false},"open_issues":740,"closed_issues":280,"state":"open","created_at":"2015-11-15T10:30:19Z","updated_at":"2016-02-29T23:45:08Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2015-11-25T16:27:22Z","updated_at":"2016-02-29T23:45:08Z","closed_at":"2016-02-29T23:45:08Z","pull_request":{"url":"https://api.github.com/repos/Microsoft/vscode/pulls/633","html_url":"https://github.com/Microsoft/vscode/pull/633","diff_url":"https://github.com/Microsoft/vscode/pull/633.diff","patch_url":"https://github.com/Microsoft/vscode/pull/633.patch"},"body":"## What is it?\r\nThis is bug fix for #297 related to completion and  also expand completion options.\r\n\r\n## How?\r\n\"typescript.useCodeSnippetsOnMethodSuggest\" option in settings now have 3 options to pick \r\n* [ default = lambda, func,  none   ] *\r\n\r\nFor signature like\r\n\r\n``` typescript\r\ninterface IDoSomething {\r\n\tgetData(url: string,data:{}, callback: (error, result) => void)\r\n}\r\n```\r\n### lambda:\r\nlambda option generate code like below and for ease of use just will keep first 3 letters of each parameters\r\n\r\n``` typescript\r\nvar x: IDoSomething;\r\nx.getData(url, data, (err, res) => {\r\n\t\t\r\n\t})\r\n```\r\n_Tab cycle = url, data, { } **lambda body**_\r\n\r\n### func:\r\nfunc option presume user wants to pass function as argument and generate this code\r\n\r\n ``` typescript\r\nvar x: IDoSomething;\r\nx.getData(url, data, callback) \r\n```\r\n\r\n_Tab cycle = url, data, callback_\r\n### none:\r\njust none ;)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/comments/190453022","html_url":"https://github.com/Microsoft/vscode/pull/633#issuecomment-190453022","issue_url":"https://api.github.com/repos/Microsoft/vscode/issues/633","id":190453022,"user":{"login":"moostad","id":10362398,"avatar_url":"https://avatars.githubusercontent.com/u/10362398?v=3","gravatar_id":"","url":"https://api.github.com/users/moostad","html_url":"https://github.com/moostad","followers_url":"https://api.github.com/users/moostad/followers","following_url":"https://api.github.com/users/moostad/following{/other_user}","gists_url":"https://api.github.com/users/moostad/gists{/gist_id}","starred_url":"https://api.github.com/users/moostad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moostad/subscriptions","organizations_url":"https://api.github.com/users/moostad/orgs","repos_url":"https://api.github.com/users/moostad/repos","events_url":"https://api.github.com/users/moostad/events{/privacy}","received_events_url":"https://api.github.com/users/moostad/received_events","type":"User","site_admin":false},"created_at":"2016-02-29T23:45:08Z","updated_at":"2016-02-29T23:45:08Z","body":"looks like it's not relevant anymore. I'm closing it"}}