{"action":"created","comment":{"url":"https://api.github.com/repos/Microsoft/nodejstools/pulls/comments/37037568","id":37037568,"diff_hunk":"@@ -148,6 +169,41 @@ public NodejsIntellisenseOptionsPage()\n             SaveString(CompletionCommittedBySetting, CompletionCommittedBy);\n             SaveBool(SaveToDiskSetting, SaveToDisk);\n \n+        }\r\n+\r\n+        private string _toolsVersion;\r\n+        private string GetTypeScriptToolsVersion() {\r\n+            if (_toolsVersion == null) {\r\n+                _toolsVersion = string.Empty;\r\n+                try {\r\n+                    // Start with the Nodejs tools path to retrieve the IDE path\r\n+                    var idePath = Assembly.GetExecutingAssembly().Location;\r\n+                    while (!string.IsNullOrEmpty(idePath) && !StringComparer.OrdinalIgnoreCase.Equals(Path.GetFileName(idePath), \"IDE\")) {\r\n+                        var parentInfo = Directory.GetParent(idePath);\r\n+                        idePath = parentInfo != null ? parentInfo.FullName : string.Empty;\r\n+                    }\r\n+\r\n+                    if (string.IsNullOrEmpty(idePath)) {\r\n+                        return _toolsVersion;\r\n+                    }\r","path":"Nodejs/Product/Nodejs/Options/NodejsIntellisenseOptionsPage.cs","position":87,"original_position":87,"commit_id":"e192a76e3bb61259a8f9545ceb4f8d5b5d3523c3","original_commit_id":"e192a76e3bb61259a8f9545ceb4f8d5b5d3523c3","user":{"login":"jramsay","id":8161247,"avatar_url":"https://avatars.githubusercontent.com/u/8161247?v=3","gravatar_id":"","url":"https://api.github.com/users/jramsay","html_url":"https://github.com/jramsay","followers_url":"https://api.github.com/users/jramsay/followers","following_url":"https://api.github.com/users/jramsay/following{/other_user}","gists_url":"https://api.github.com/users/jramsay/gists{/gist_id}","starred_url":"https://api.github.com/users/jramsay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jramsay/subscriptions","organizations_url":"https://api.github.com/users/jramsay/orgs","repos_url":"https://api.github.com/users/jramsay/repos","events_url":"https://api.github.com/users/jramsay/events{/privacy}","received_events_url":"https://api.github.com/users/jramsay/received_events","type":"User","site_admin":false},"body":"Thanks - will use this method instead.","created_at":"2015-08-13T23:34:05Z","updated_at":"2015-08-13T23:34:05Z","html_url":"https://github.com/Microsoft/nodejstools/pull/366#discussion_r37037568","pull_request_url":"https://api.github.com/repos/Microsoft/nodejstools/pulls/366","_links":{"self":{"href":"https://api.github.com/repos/Microsoft/nodejstools/pulls/comments/37037568"},"html":{"href":"https://github.com/Microsoft/nodejstools/pull/366#discussion_r37037568"},"pull_request":{"href":"https://api.github.com/repos/Microsoft/nodejstools/pulls/366"}}},"pull_request":{"url":"https://api.github.com/repos/Microsoft/nodejstools/pulls/366","id":42384661,"html_url":"https://github.com/Microsoft/nodejstools/pull/366","diff_url":"https://github.com/Microsoft/nodejstools/pull/366.diff","patch_url":"https://github.com/Microsoft/nodejstools/pull/366.patch","issue_url":"https://api.github.com/repos/Microsoft/nodejstools/issues/366","number":366,"state":"open","locked":false,"title":"ES6 Intellisense preview","user":{"login":"jramsay","id":8161247,"avatar_url":"https://avatars.githubusercontent.com/u/8161247?v=3","gravatar_id":"","url":"https://api.github.com/users/jramsay","html_url":"https://github.com/jramsay","followers_url":"https://api.github.com/users/jramsay/followers","following_url":"https://api.github.com/users/jramsay/following{/other_user}","gists_url":"https://api.github.com/users/jramsay/gists{/gist_id}","starred_url":"https://api.github.com/users/jramsay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jramsay/subscriptions","organizations_url":"https://api.github.com/users/jramsay/orgs","repos_url":"https://api.github.com/users/jramsay/repos","events_url":"https://api.github.com/users/jramsay/events{/privacy}","received_events_url":"https://api.github.com/users/jramsay/received_events","type":"User","site_admin":false},"body":"- Changes to add an \"ES6 IntelliSense Preview\" option under:\r\n  Tools->Options->Text Editor->Node.js->IntelliSense\r\n- The option is only enabled if the TS version is at least 1.6\r\n- If the intellisense preview option is enabled the TypeScript editor is used for JS files (instead of the NodeJS editor)","created_at":"2015-08-13T18:46:27Z","updated_at":"2015-08-13T23:34:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Microsoft/nodejstools/pulls/366/commits","review_comments_url":"https://api.github.com/repos/Microsoft/nodejstools/pulls/366/comments","review_comment_url":"https://api.github.com/repos/Microsoft/nodejstools/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Microsoft/nodejstools/issues/366/comments","statuses_url":"https://api.github.com/repos/Microsoft/nodejstools/statuses/e192a76e3bb61259a8f9545ceb4f8d5b5d3523c3","head":{"label":"jramsay:ES6IntellisensePreview","ref":"ES6IntellisensePreview","sha":"e192a76e3bb61259a8f9545ceb4f8d5b5d3523c3","user":{"login":"jramsay","id":8161247,"avatar_url":"https://avatars.githubusercontent.com/u/8161247?v=3","gravatar_id":"","url":"https://api.github.com/users/jramsay","html_url":"https://github.com/jramsay","followers_url":"https://api.github.com/users/jramsay/followers","following_url":"https://api.github.com/users/jramsay/following{/other_user}","gists_url":"https://api.github.com/users/jramsay/gists{/gist_id}","starred_url":"https://api.github.com/users/jramsay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jramsay/subscriptions","organizations_url":"https://api.github.com/users/jramsay/orgs","repos_url":"https://api.github.com/users/jramsay/repos","events_url":"https://api.github.com/users/jramsay/events{/privacy}","received_events_url":"https://api.github.com/users/jramsay/received_events","type":"User","site_admin":false},"repo":{"id":38141092,"name":"nodejstools","full_name":"jramsay/nodejstools","owner":{"login":"jramsay","id":8161247,"avatar_url":"https://avatars.githubusercontent.com/u/8161247?v=3","gravatar_id":"","url":"https://api.github.com/users/jramsay","html_url":"https://github.com/jramsay","followers_url":"https://api.github.com/users/jramsay/followers","following_url":"https://api.github.com/users/jramsay/following{/other_user}","gists_url":"https://api.github.com/users/jramsay/gists{/gist_id}","starred_url":"https://api.github.com/users/jramsay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jramsay/subscriptions","organizations_url":"https://api.github.com/users/jramsay/orgs","repos_url":"https://api.github.com/users/jramsay/repos","events_url":"https://api.github.com/users/jramsay/events{/privacy}","received_events_url":"https://api.github.com/users/jramsay/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jramsay/nodejstools","description":"Node.js Tools for Visual Studio","fork":true,"url":"https://api.github.com/repos/jramsay/nodejstools","forks_url":"https://api.github.com/repos/jramsay/nodejstools/forks","keys_url":"https://api.github.com/repos/jramsay/nodejstools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jramsay/nodejstools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jramsay/nodejstools/teams","hooks_url":"https://api.github.com/repos/jramsay/nodejstools/hooks","issue_events_url":"https://api.github.com/repos/jramsay/nodejstools/issues/events{/number}","events_url":"https://api.github.com/repos/jramsay/nodejstools/events","assignees_url":"https://api.github.com/repos/jramsay/nodejstools/assignees{/user}","branches_url":"https://api.github.com/repos/jramsay/nodejstools/branches{/branch}","tags_url":"https://api.github.com/repos/jramsay/nodejstools/tags","blobs_url":"https://api.github.com/repos/jramsay/nodejstools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jramsay/nodejstools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jramsay/nodejstools/git/refs{/sha}","trees_url":"https://api.github.com/repos/jramsay/nodejstools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jramsay/nodejstools/statuses/{sha}","languages_url":"https://api.github.com/repos/jramsay/nodejstools/languages","stargazers_url":"https://api.github.com/repos/jramsay/nodejstools/stargazers","contributors_url":"https://api.github.com/repos/jramsay/nodejstools/contributors","subscribers_url":"https://api.github.com/repos/jramsay/nodejstools/subscribers","subscription_url":"https://api.github.com/repos/jramsay/nodejstools/subscription","commits_url":"https://api.github.com/repos/jramsay/nodejstools/commits{/sha}","git_commits_url":"https://api.github.com/repos/jramsay/nodejstools/git/commits{/sha}","comments_url":"https://api.github.com/repos/jramsay/nodejstools/comments{/number}","issue_comment_url":"https://api.github.com/repos/jramsay/nodejstools/issues/comments{/number}","contents_url":"https://api.github.com/repos/jramsay/nodejstools/contents/{+path}","compare_url":"https://api.github.com/repos/jramsay/nodejstools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jramsay/nodejstools/merges","archive_url":"https://api.github.com/repos/jramsay/nodejstools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jramsay/nodejstools/downloads","issues_url":"https://api.github.com/repos/jramsay/nodejstools/issues{/number}","pulls_url":"https://api.github.com/repos/jramsay/nodejstools/pulls{/number}","milestones_url":"https://api.github.com/repos/jramsay/nodejstools/milestones{/number}","notifications_url":"https://api.github.com/repos/jramsay/nodejstools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jramsay/nodejstools/labels{/name}","releases_url":"https://api.github.com/repos/jramsay/nodejstools/releases{/id}","created_at":"2015-06-27T00:58:14Z","updated_at":"2015-06-27T00:58:20Z","pushed_at":"2015-08-13T20:17:40Z","git_url":"git://github.com/jramsay/nodejstools.git","ssh_url":"git@github.com:jramsay/nodejstools.git","clone_url":"https://github.com/jramsay/nodejstools.git","svn_url":"https://github.com/jramsay/nodejstools","homepage":"http://aka.ms/explorentvs","size":90476,"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":"4f187a367b49140b256f7b751c3dc034e575ab39","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-08-13T12:53:38Z","pushed_at":"2015-08-13T20:17:41Z","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":98144,"stargazers_count":603,"watchers_count":603,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":78,"mirror_url":null,"open_issues_count":179,"forks":78,"open_issues":179,"watchers":603,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/nodejstools/pulls/366"},"html":{"href":"https://github.com/Microsoft/nodejstools/pull/366"},"issue":{"href":"https://api.github.com/repos/Microsoft/nodejstools/issues/366"},"comments":{"href":"https://api.github.com/repos/Microsoft/nodejstools/issues/366/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/nodejstools/pulls/366/comments"},"review_comment":{"href":"https://api.github.com/repos/Microsoft/nodejstools/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Microsoft/nodejstools/pulls/366/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/nodejstools/statuses/e192a76e3bb61259a8f9545ceb4f8d5b5d3523c3"}}}}