{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/nodejstools/issues/108","repository_url":"https://api.github.com/repos/Microsoft/nodejstools","labels_url":"https://api.github.com/repos/Microsoft/nodejstools/issues/108/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/nodejstools/issues/108/comments","events_url":"https://api.github.com/repos/Microsoft/nodejstools/issues/108/events","html_url":"https://github.com/Microsoft/nodejstools/issues/108","id":74180061,"number":108,"title":"Indentation of \"chained\" calls","user":{"login":"danderson00","id":1265935,"avatar_url":"https://avatars.githubusercontent.com/u/1265935?v=3","gravatar_id":"","url":"https://api.github.com/users/danderson00","html_url":"https://github.com/danderson00","followers_url":"https://api.github.com/users/danderson00/followers","following_url":"https://api.github.com/users/danderson00/following{/other_user}","gists_url":"https://api.github.com/users/danderson00/gists{/gist_id}","starred_url":"https://api.github.com/users/danderson00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danderson00/subscriptions","organizations_url":"https://api.github.com/users/danderson00/orgs","repos_url":"https://api.github.com/users/danderson00/repos","events_url":"https://api.github.com/users/danderson00/events{/privacy}","received_events_url":"https://api.github.com/users/danderson00/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/nodejstools/labels/feature","name":"feature","color":"fbca04"},{"url":"https://api.github.com/repos/Microsoft/nodejstools/labels/formatting","name":"formatting","color":"dff0ff"},{"url":"https://api.github.com/repos/Microsoft/nodejstools/labels/up-for-grabs","name":"up-for-grabs","color":"00cc33"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/Microsoft/nodejstools/milestones/4","html_url":"https://github.com/Microsoft/nodejstools/milestones/Future","labels_url":"https://api.github.com/repos/Microsoft/nodejstools/milestones/4/labels","id":1060983,"number":4,"title":"Future","description":"","creator":{"login":"AndreSayreMSFT","id":10080679,"avatar_url":"https://avatars.githubusercontent.com/u/10080679?v=3","gravatar_id":"","url":"https://api.github.com/users/AndreSayreMSFT","html_url":"https://github.com/AndreSayreMSFT","followers_url":"https://api.github.com/users/AndreSayreMSFT/followers","following_url":"https://api.github.com/users/AndreSayreMSFT/following{/other_user}","gists_url":"https://api.github.com/users/AndreSayreMSFT/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreSayreMSFT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreSayreMSFT/subscriptions","organizations_url":"https://api.github.com/users/AndreSayreMSFT/orgs","repos_url":"https://api.github.com/users/AndreSayreMSFT/repos","events_url":"https://api.github.com/users/AndreSayreMSFT/events{/privacy}","received_events_url":"https://api.github.com/users/AndreSayreMSFT/received_events","type":"User","site_admin":false},"open_issues":113,"closed_issues":61,"state":"open","created_at":"2015-04-09T21:08:48Z","updated_at":"2016-04-13T20:40:38Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-05-08T00:53:06Z","updated_at":"2016-04-13T20:40:38Z","closed_at":"2016-04-13T20:40:38Z","body":"A common pattern for formatting \"chained\" calls is to place each new operation indented on a new line, for example:\r\n\r\n    router.route('/tables/:tableName/:id')\r\n        .get(function (req, res, next) {\r\n            return tables.read(req.params.tableName, req.query)\r\n                .then(function (results) {\r\n                    res.send(JSON.stringify(results));\r\n                    next();\r\n                });\r\n        })\r\n        .post(function (req, res, next) {\r\n            // do some stuff\r\n        })\r\n\r\nHowever, NTVS formats the code without the additional indentation:\r\n\r\n    router.route('/tables/:tableName/:id')\r\n        .get(function (req, res, next) {\r\n        return tables.read(req.params.tableName, req.query)\r\n                .then(function (results) {\r\n            res.send(JSON.stringify(results));\r\n            next();\r\n        });\r\n    })\r\n        .post(function (req, res, next) {\r\n            // do some stuff\r\n    });\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/nodejstools/issues/comments/209639067","html_url":"https://github.com/Microsoft/nodejstools/issues/108#issuecomment-209639067","issue_url":"https://api.github.com/repos/Microsoft/nodejstools/issues/108","id":209639067,"user":{"login":"mjbvz","id":12821956,"avatar_url":"https://avatars.githubusercontent.com/u/12821956?v=3","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},"created_at":"2016-04-13T20:40:38Z","updated_at":"2016-04-13T20:40:38Z","body":"Fixed in NTVS 1.2 Alpha with ES6 Intellisense preview\r\n\r\n![image](https://cloud.githubusercontent.com/assets/12821956/14508635/48c0c64c-017d-11e6-8c71-89578611ca8d.png)\r\n"}}