{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/4618","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/4618/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/4618/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/4618/events","html_url":"https://github.com/Microsoft/vscode/issues/4618","id":143002987,"number":4618,"title":"Enhanced support for rest params","user":{"login":"donaldpipowitch","id":1152805,"avatar_url":"https://avatars.githubusercontent.com/u/1152805?v=3","gravatar_id":"","url":"https://api.github.com/users/donaldpipowitch","html_url":"https://github.com/donaldpipowitch","followers_url":"https://api.github.com/users/donaldpipowitch/followers","following_url":"https://api.github.com/users/donaldpipowitch/following{/other_user}","gists_url":"https://api.github.com/users/donaldpipowitch/gists{/gist_id}","starred_url":"https://api.github.com/users/donaldpipowitch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donaldpipowitch/subscriptions","organizations_url":"https://api.github.com/users/donaldpipowitch/orgs","repos_url":"https://api.github.com/users/donaldpipowitch/repos","events_url":"https://api.github.com/users/donaldpipowitch/events{/privacy}","received_events_url":"https://api.github.com/users/donaldpipowitch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","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":null,"comments":2,"created_at":"2016-03-23T16:03:17Z","updated_at":"2016-03-24T08:49:00Z","closed_at":null,"body":"I'd look to add better support for rest params and need some guidance. This would be my first contribution to the code base. It looks like Intellisense only works for the first param. Say I have the following interface:\r\n\r\n```\r\ndeclare module 'bar' {\r\n  /**\r\n   * Only shows rest params.\r\n   * @param params Optional params.\r\n   */\r\n  export function foo(...params: any[]): void;\r\n}\r\n```\r\n\r\nAnd use it like this:\r\n\r\n```\r\nimport * as bar from 'bar';\r\n\r\nbar.foo(1, 2);\r\n```\r\n\r\nFor `1` I'd get a correct hint showing the documentation `...params: any[] Optional params.`. For `2` I'd expect to get the same hint, but nothing shows up currently.\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/comments/200738907","html_url":"https://github.com/Microsoft/vscode/issues/4618#issuecomment-200738907","issue_url":"https://api.github.com/repos/Microsoft/vscode/issues/4618","id":200738907,"user":{"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},"created_at":"2016-03-24T08:48:59Z","updated_at":"2016-03-24T08:48:59Z","body":"Here is what I see on latest:\r\n\r\n![bug](https://cloud.githubusercontent.com/assets/1931590/14012363/993dfad2-f1a5-11e5-91d2-2bf1c76fce34.gif)\r\n\r\nSo it looks the that params hints come correctly from the tsserver however our highlighting is off since it doesn't know anything about ...\r\n\r\nMoving to @joaomoreno who owns the widget."}}