{"action":"created","comment":{"url":"https://api.github.com/repos/Microsoft/nodejstools/pulls/comments/56905219","id":56905219,"diff_hunk":"@@ -38,6 +39,16 @@ public NodejsFileNode(NodejsProjectNode root, ProjectElement e)\n             }\n         }\n \n+        protected override void OnParentSet(HierarchyNode parent) {\n+#if DEV14\n+            if (Url.EndsWith(\".d.ts\", StringComparison.OrdinalIgnoreCase) && Url.IndexOf(@\"\\typings\\\", StringComparison.OrdinalIgnoreCase) >= 0) {\n+                ProjectMgr.Site.GetUIThread().Invoke(() => {\n+                    this.IncludeInProject(true);\n+                });","path":"Nodejs/Product/Nodejs/Project/NodejsFileNode.cs","position":17,"original_position":17,"commit_id":"bea43f51108ebb53eb95daaae77dd037540badb5","original_commit_id":"bea43f51108ebb53eb95daaae77dd037540badb5","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":"is it necessary to invoke the UI thread here? Let's double check before merging in. ","created_at":"2016-03-21T21:59:33Z","updated_at":"2016-03-21T21:59:33Z","html_url":"https://github.com/Microsoft/nodejstools/pull/757#discussion_r56905219","pull_request_url":"https://api.github.com/repos/Microsoft/nodejstools/pulls/757","_links":{"self":{"href":"https://api.github.com/repos/Microsoft/nodejstools/pulls/comments/56905219"},"html":{"href":"https://github.com/Microsoft/nodejstools/pull/757#discussion_r56905219"},"pull_request":{"href":"https://api.github.com/repos/Microsoft/nodejstools/pulls/757"}}},"pull_request":{"url":"https://api.github.com/repos/Microsoft/nodejstools/pulls/757","id":63448562,"html_url":"https://github.com/Microsoft/nodejstools/pull/757","diff_url":"https://github.com/Microsoft/nodejstools/pull/757.diff","patch_url":"https://github.com/Microsoft/nodejstools/pull/757.patch","issue_url":"https://api.github.com/repos/Microsoft/nodejstools/issues/757","number":757,"state":"open","locked":false,"title":"Vs14u2 add dts files to project","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},"body":"There are two problems with Intellisense in Dev14 Update 2, when using typescript for Javascript Intellisense:\r\n* You have to rename the d.ts files to trigger Intellisense to work. Just including the file in the project is not enough\r\n* typings files are not automatically picked up or added to the project.\r\n\r\nThis change fixes both of these issues.\r\n\r\nThe first for the first is triggering an `OnItemAdded` to get an included d.ts file noticed by type script\r\n\r\nThe second part is fixed by auto including any file node that is in the typings directory.","created_at":"2016-03-18T23:17:24Z","updated_at":"2016-03-21T21:59:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"708b9d41d2dd3ebcef73a2e705e6087a2b0ec4a4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Microsoft/nodejstools/pulls/757/commits","review_comments_url":"https://api.github.com/repos/Microsoft/nodejstools/pulls/757/comments","review_comment_url":"https://api.github.com/repos/Microsoft/nodejstools/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Microsoft/nodejstools/issues/757/comments","statuses_url":"https://api.github.com/repos/Microsoft/nodejstools/statuses/bea43f51108ebb53eb95daaae77dd037540badb5","head":{"label":"mjbvz:vs14u2-add-dts-files-to-project","ref":"vs14u2-add-dts-files-to-project","sha":"bea43f51108ebb53eb95daaae77dd037540badb5","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},"repo":{"id":52391688,"name":"nodejstools","full_name":"mjbvz/nodejstools","owner":{"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},"private":false,"html_url":"https://github.com/mjbvz/nodejstools","description":"Node.js Tools for Visual Studio","fork":true,"url":"https://api.github.com/repos/mjbvz/nodejstools","forks_url":"https://api.github.com/repos/mjbvz/nodejstools/forks","keys_url":"https://api.github.com/repos/mjbvz/nodejstools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mjbvz/nodejstools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mjbvz/nodejstools/teams","hooks_url":"https://api.github.com/repos/mjbvz/nodejstools/hooks","issue_events_url":"https://api.github.com/repos/mjbvz/nodejstools/issues/events{/number}","events_url":"https://api.github.com/repos/mjbvz/nodejstools/events","assignees_url":"https://api.github.com/repos/mjbvz/nodejstools/assignees{/user}","branches_url":"https://api.github.com/repos/mjbvz/nodejstools/branches{/branch}","tags_url":"https://api.github.com/repos/mjbvz/nodejstools/tags","blobs_url":"https://api.github.com/repos/mjbvz/nodejstools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mjbvz/nodejstools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mjbvz/nodejstools/git/refs{/sha}","trees_url":"https://api.github.com/repos/mjbvz/nodejstools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mjbvz/nodejstools/statuses/{sha}","languages_url":"https://api.github.com/repos/mjbvz/nodejstools/languages","stargazers_url":"https://api.github.com/repos/mjbvz/nodejstools/stargazers","contributors_url":"https://api.github.com/repos/mjbvz/nodejstools/contributors","subscribers_url":"https://api.github.com/repos/mjbvz/nodejstools/subscribers","subscription_url":"https://api.github.com/repos/mjbvz/nodejstools/subscription","commits_url":"https://api.github.com/repos/mjbvz/nodejstools/commits{/sha}","git_commits_url":"https://api.github.com/repos/mjbvz/nodejstools/git/commits{/sha}","comments_url":"https://api.github.com/repos/mjbvz/nodejstools/comments{/number}","issue_comment_url":"https://api.github.com/repos/mjbvz/nodejstools/issues/comments{/number}","contents_url":"https://api.github.com/repos/mjbvz/nodejstools/contents/{+path}","compare_url":"https://api.github.com/repos/mjbvz/nodejstools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mjbvz/nodejstools/merges","archive_url":"https://api.github.com/repos/mjbvz/nodejstools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mjbvz/nodejstools/downloads","issues_url":"https://api.github.com/repos/mjbvz/nodejstools/issues{/number}","pulls_url":"https://api.github.com/repos/mjbvz/nodejstools/pulls{/number}","milestones_url":"https://api.github.com/repos/mjbvz/nodejstools/milestones{/number}","notifications_url":"https://api.github.com/repos/mjbvz/nodejstools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mjbvz/nodejstools/labels{/name}","releases_url":"https://api.github.com/repos/mjbvz/nodejstools/releases{/id}","deployments_url":"https://api.github.com/repos/mjbvz/nodejstools/deployments","created_at":"2016-02-23T21:06:55Z","updated_at":"2016-02-23T21:07:01Z","pushed_at":"2016-03-18T23:16:13Z","git_url":"git://github.com/mjbvz/nodejstools.git","ssh_url":"git@github.com:mjbvz/nodejstools.git","clone_url":"https://github.com/mjbvz/nodejstools.git","svn_url":"https://github.com/mjbvz/nodejstools","homepage":"http://aka.ms/explorentvs","size":92711,"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":"66acb1ba9927b98d813f782e1e9e77662d5105da","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}","deployments_url":"https://api.github.com/repos/Microsoft/nodejstools/deployments","created_at":"2015-03-28T01:37:20Z","updated_at":"2016-03-21T08:24:02Z","pushed_at":"2016-03-21T21:54:59Z","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":93878,"stargazers_count":1110,"watchers_count":1110,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":170,"mirror_url":null,"open_issues_count":251,"forks":170,"open_issues":251,"watchers":1110,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/nodejstools/pulls/757"},"html":{"href":"https://github.com/Microsoft/nodejstools/pull/757"},"issue":{"href":"https://api.github.com/repos/Microsoft/nodejstools/issues/757"},"comments":{"href":"https://api.github.com/repos/Microsoft/nodejstools/issues/757/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/nodejstools/pulls/757/comments"},"review_comment":{"href":"https://api.github.com/repos/Microsoft/nodejstools/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Microsoft/nodejstools/pulls/757/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/nodejstools/statuses/bea43f51108ebb53eb95daaae77dd037540badb5"}}}}