{"action":"created","comment":{"url":"https://api.github.com/repos/Microsoft/nodejstools/pulls/comments/35990798","id":35990798,"diff_hunk":"@@ -0,0 +1,24 @@\n+﻿<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n+<CodeSnippets\r\n+    xmlns=\"http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet\">\r\n+  <CodeSnippet Format=\"1.0.0\">\r\n+    <Header>\r\n+      <Title>tryc</Title>\r\n+      <Description>Code Snippet for a Try...Catch Statement</Description>\r\n+      <Shortcut>tryc</Shortcut>\r\n+      <SnippetTypes>\r\n+        <SnippetType>Expansion</SnippetType>\r\n+      </SnippetTypes>\r\n+    </Header>\r\n+    <Snippet>\r\n+      <Code Language=\"Nodejs\">\r\n+        <![CDATA[try {\r\n+\r\n+} catch (error) {\r","path":"Nodejs/Product/Nodejs/Snippets/1033/Nodejs/tryc.snippet","position":17,"original_position":17,"commit_id":"6bebb070cb7c35fe551d4166d3afd043d4f95e79","original_commit_id":"6bebb070cb7c35fe551d4166d3afd043d4f95e79","user":{"login":"mousetraps","id":762848,"avatar_url":"https://avatars.githubusercontent.com/u/762848?v=3","gravatar_id":"","url":"https://api.github.com/users/mousetraps","html_url":"https://github.com/mousetraps","followers_url":"https://api.github.com/users/mousetraps/followers","following_url":"https://api.github.com/users/mousetraps/following{/other_user}","gists_url":"https://api.github.com/users/mousetraps/gists{/gist_id}","starred_url":"https://api.github.com/users/mousetraps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mousetraps/subscriptions","organizations_url":"https://api.github.com/users/mousetraps/orgs","repos_url":"https://api.github.com/users/mousetraps/repos","events_url":"https://api.github.com/users/mousetraps/events{/privacy}","received_events_url":"https://api.github.com/users/mousetraps/received_events","type":"User","site_admin":false},"body":"you probably want to make the error a replaceable parameter here since people are picky about what they name their errors. I believe it's also more common to use ```e``` rather than ```error```","created_at":"2015-07-31T16:38:01Z","updated_at":"2015-07-31T16:38:01Z","html_url":"https://github.com/Microsoft/nodejstools/pull/339#discussion_r35990798","pull_request_url":"https://api.github.com/repos/Microsoft/nodejstools/pulls/339","_links":{"self":{"href":"https://api.github.com/repos/Microsoft/nodejstools/pulls/comments/35990798"},"html":{"href":"https://github.com/Microsoft/nodejstools/pull/339#discussion_r35990798"},"pull_request":{"href":"https://api.github.com/repos/Microsoft/nodejstools/pulls/339"}}},"pull_request":{"url":"https://api.github.com/repos/Microsoft/nodejstools/pulls/339","id":41283270,"html_url":"https://github.com/Microsoft/nodejstools/pull/339","diff_url":"https://github.com/Microsoft/nodejstools/pull/339.diff","patch_url":"https://github.com/Microsoft/nodejstools/pull/339.patch","issue_url":"https://api.github.com/repos/Microsoft/nodejstools/issues/339","number":339,"state":"open","locked":false,"title":"add snippet support for node.js tools","user":{"login":"avitalb","id":11009722,"avatar_url":"https://avatars.githubusercontent.com/u/11009722?v=3","gravatar_id":"","url":"https://api.github.com/users/avitalb","html_url":"https://github.com/avitalb","followers_url":"https://api.github.com/users/avitalb/followers","following_url":"https://api.github.com/users/avitalb/following{/other_user}","gists_url":"https://api.github.com/users/avitalb/gists{/gist_id}","starred_url":"https://api.github.com/users/avitalb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avitalb/subscriptions","organizations_url":"https://api.github.com/users/avitalb/orgs","repos_url":"https://api.github.com/users/avitalb/repos","events_url":"https://api.github.com/users/avitalb/events{/privacy}","received_events_url":"https://api.github.com/users/avitalb/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-30T21:18:22Z","updated_at":"2015-07-31T16:38:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"20738eee166bb330d377895f4ff62a6258dd482a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Microsoft/nodejstools/pulls/339/commits","review_comments_url":"https://api.github.com/repos/Microsoft/nodejstools/pulls/339/comments","review_comment_url":"https://api.github.com/repos/Microsoft/nodejstools/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Microsoft/nodejstools/issues/339/comments","statuses_url":"https://api.github.com/repos/Microsoft/nodejstools/statuses/6bebb070cb7c35fe551d4166d3afd043d4f95e79","head":{"label":"avitalb:snippetsupport","ref":"snippetsupport","sha":"6bebb070cb7c35fe551d4166d3afd043d4f95e79","user":{"login":"avitalb","id":11009722,"avatar_url":"https://avatars.githubusercontent.com/u/11009722?v=3","gravatar_id":"","url":"https://api.github.com/users/avitalb","html_url":"https://github.com/avitalb","followers_url":"https://api.github.com/users/avitalb/followers","following_url":"https://api.github.com/users/avitalb/following{/other_user}","gists_url":"https://api.github.com/users/avitalb/gists{/gist_id}","starred_url":"https://api.github.com/users/avitalb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avitalb/subscriptions","organizations_url":"https://api.github.com/users/avitalb/orgs","repos_url":"https://api.github.com/users/avitalb/repos","events_url":"https://api.github.com/users/avitalb/events{/privacy}","received_events_url":"https://api.github.com/users/avitalb/received_events","type":"User","site_admin":false},"repo":{"id":39027517,"name":"nodejstools","full_name":"avitalb/nodejstools","owner":{"login":"avitalb","id":11009722,"avatar_url":"https://avatars.githubusercontent.com/u/11009722?v=3","gravatar_id":"","url":"https://api.github.com/users/avitalb","html_url":"https://github.com/avitalb","followers_url":"https://api.github.com/users/avitalb/followers","following_url":"https://api.github.com/users/avitalb/following{/other_user}","gists_url":"https://api.github.com/users/avitalb/gists{/gist_id}","starred_url":"https://api.github.com/users/avitalb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avitalb/subscriptions","organizations_url":"https://api.github.com/users/avitalb/orgs","repos_url":"https://api.github.com/users/avitalb/repos","events_url":"https://api.github.com/users/avitalb/events{/privacy}","received_events_url":"https://api.github.com/users/avitalb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/avitalb/nodejstools","description":"Node.js Tools for Visual Studio","fork":true,"url":"https://api.github.com/repos/avitalb/nodejstools","forks_url":"https://api.github.com/repos/avitalb/nodejstools/forks","keys_url":"https://api.github.com/repos/avitalb/nodejstools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/avitalb/nodejstools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/avitalb/nodejstools/teams","hooks_url":"https://api.github.com/repos/avitalb/nodejstools/hooks","issue_events_url":"https://api.github.com/repos/avitalb/nodejstools/issues/events{/number}","events_url":"https://api.github.com/repos/avitalb/nodejstools/events","assignees_url":"https://api.github.com/repos/avitalb/nodejstools/assignees{/user}","branches_url":"https://api.github.com/repos/avitalb/nodejstools/branches{/branch}","tags_url":"https://api.github.com/repos/avitalb/nodejstools/tags","blobs_url":"https://api.github.com/repos/avitalb/nodejstools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/avitalb/nodejstools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/avitalb/nodejstools/git/refs{/sha}","trees_url":"https://api.github.com/repos/avitalb/nodejstools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/avitalb/nodejstools/statuses/{sha}","languages_url":"https://api.github.com/repos/avitalb/nodejstools/languages","stargazers_url":"https://api.github.com/repos/avitalb/nodejstools/stargazers","contributors_url":"https://api.github.com/repos/avitalb/nodejstools/contributors","subscribers_url":"https://api.github.com/repos/avitalb/nodejstools/subscribers","subscription_url":"https://api.github.com/repos/avitalb/nodejstools/subscription","commits_url":"https://api.github.com/repos/avitalb/nodejstools/commits{/sha}","git_commits_url":"https://api.github.com/repos/avitalb/nodejstools/git/commits{/sha}","comments_url":"https://api.github.com/repos/avitalb/nodejstools/comments{/number}","issue_comment_url":"https://api.github.com/repos/avitalb/nodejstools/issues/comments{/number}","contents_url":"https://api.github.com/repos/avitalb/nodejstools/contents/{+path}","compare_url":"https://api.github.com/repos/avitalb/nodejstools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/avitalb/nodejstools/merges","archive_url":"https://api.github.com/repos/avitalb/nodejstools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/avitalb/nodejstools/downloads","issues_url":"https://api.github.com/repos/avitalb/nodejstools/issues{/number}","pulls_url":"https://api.github.com/repos/avitalb/nodejstools/pulls{/number}","milestones_url":"https://api.github.com/repos/avitalb/nodejstools/milestones{/number}","notifications_url":"https://api.github.com/repos/avitalb/nodejstools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/avitalb/nodejstools/labels{/name}","releases_url":"https://api.github.com/repos/avitalb/nodejstools/releases{/id}","created_at":"2015-07-13T17:41:09Z","updated_at":"2015-07-13T17:41:16Z","pushed_at":"2015-07-30T21:17:45Z","git_url":"git://github.com/avitalb/nodejstools.git","ssh_url":"git@github.com:avitalb/nodejstools.git","clone_url":"https://github.com/avitalb/nodejstools.git","svn_url":"https://github.com/avitalb/nodejstools","homepage":"http://aka.ms/explorentvs","size":90492,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Microsoft:master","ref":"master","sha":"33d7210d914e4d5021d1a9cbc863e9723696c93f","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":33017149,"name":"nodejstools","full_name":"Microsoft/nodejstools","owner":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/nodejstools","description":"Node.js Tools for Visual Studio","fork":false,"url":"https://api.github.com/repos/Microsoft/nodejstools","forks_url":"https://api.github.com/repos/Microsoft/nodejstools/forks","keys_url":"https://api.github.com/repos/Microsoft/nodejstools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/nodejstools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/nodejstools/teams","hooks_url":"https://api.github.com/repos/Microsoft/nodejstools/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/nodejstools/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/nodejstools/events","assignees_url":"https://api.github.com/repos/Microsoft/nodejstools/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/nodejstools/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/nodejstools/tags","blobs_url":"https://api.github.com/repos/Microsoft/nodejstools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/nodejstools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/nodejstools/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/nodejstools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/nodejstools/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/nodejstools/languages","stargazers_url":"https://api.github.com/repos/Microsoft/nodejstools/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/nodejstools/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/nodejstools/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/nodejstools/subscription","commits_url":"https://api.github.com/repos/Microsoft/nodejstools/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/nodejstools/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/nodejstools/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/nodejstools/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/nodejstools/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/nodejstools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/nodejstools/merges","archive_url":"https://api.github.com/repos/Microsoft/nodejstools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/nodejstools/downloads","issues_url":"https://api.github.com/repos/Microsoft/nodejstools/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/nodejstools/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/nodejstools/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/nodejstools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/nodejstools/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/nodejstools/releases{/id}","created_at":"2015-03-28T01:37:20Z","updated_at":"2015-07-31T09:36:02Z","pushed_at":"2015-07-30T21:18:22Z","git_url":"git://github.com/Microsoft/nodejstools.git","ssh_url":"git@github.com:Microsoft/nodejstools.git","clone_url":"https://github.com/Microsoft/nodejstools.git","svn_url":"https://github.com/Microsoft/nodejstools","homepage":"http://aka.ms/explorentvs","size":97637,"stargazers_count":562,"watchers_count":562,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":70,"mirror_url":null,"open_issues_count":168,"forks":70,"open_issues":168,"watchers":562,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/nodejstools/pulls/339"},"html":{"href":"https://github.com/Microsoft/nodejstools/pull/339"},"issue":{"href":"https://api.github.com/repos/Microsoft/nodejstools/issues/339"},"comments":{"href":"https://api.github.com/repos/Microsoft/nodejstools/issues/339/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/nodejstools/pulls/339/comments"},"review_comment":{"href":"https://api.github.com/repos/Microsoft/nodejstools/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Microsoft/nodejstools/pulls/339/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/nodejstools/statuses/6bebb070cb7c35fe551d4166d3afd043d4f95e79"}}}}