{"action":"created","comment":{"url":"https://api.github.com/repos/Microsoft/sqltoolsservice/pulls/comments/92071671","pull_request_review_id":12581356,"id":92071671,"diff_hunk":"@@ -184,6 +185,29 @@ public void GetSchemaFromDatabaseQualifiedNameWithInvalidNameTest()\n             string actualSchemaName = peekDefinition.GetSchemaFromDatabaseQualifiedName(validDatabaseQualifiedName, objectName);\n             Assert.Equal(actualSchemaName, expectedSchemaName);\n         }\n+\n+        /// <summary>\n+        /// Test Deletion of peek definition scripts for a valid temp folder that exists\n+        /// </summary>\n+        [Fact]\n+        public void DeletePeekDefinitionScriptsTest()\n+        {\n+            PeekDefinition peekDefinition = new PeekDefinition(null);\n+            var languageService = LanguageService.Instance;\n+            languageService.DeletePeekDefinitionScripts();\n+            Assert.False(Directory.Exists(FileUtils.PeekDefinitionTempFolder));\n+        }\n+\n+        /// <summary>\n+        /// Test Deletion of peek definition scripts for a temp folder that does not exist\n+        /// </summary>\n+        [Fact]\n+        public void DeletePeekDefinitionScriptsWhenFolderDoesNotExistTest()\n+        {\n+            var languageService = LanguageService.Instance;","path":"test/Microsoft.SqlTools.ServiceLayer.Test/LanguageServer/PeekDefinitionTests.cs","position":32,"original_position":31,"commit_id":"40b39f8a041676fe107b8ee4b8ed144a6eafeabc","original_commit_id":"acb19fc880c83db833cc5d2490a4b9980aa94cb6","user":{"login":"sharonravindran","id":20197043,"avatar_url":"https://avatars.githubusercontent.com/u/20197043?v=3","gravatar_id":"","url":"https://api.github.com/users/sharonravindran","html_url":"https://github.com/sharonravindran","followers_url":"https://api.github.com/users/sharonravindran/followers","following_url":"https://api.github.com/users/sharonravindran/following{/other_user}","gists_url":"https://api.github.com/users/sharonravindran/gists{/gist_id}","starred_url":"https://api.github.com/users/sharonravindran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sharonravindran/subscriptions","organizations_url":"https://api.github.com/users/sharonravindran/orgs","repos_url":"https://api.github.com/users/sharonravindran/repos","events_url":"https://api.github.com/users/sharonravindran/events{/privacy}","received_events_url":"https://api.github.com/users/sharonravindran/received_events","type":"User","site_admin":false},"body":"Added check","created_at":"2016-12-13T00:14:57Z","updated_at":"2016-12-13T00:14:57Z","html_url":"https://github.com/Microsoft/sqltoolsservice/pull/174#discussion_r92071671","pull_request_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/pulls/174","_links":{"self":{"href":"https://api.github.com/repos/Microsoft/sqltoolsservice/pulls/comments/92071671"},"html":{"href":"https://github.com/Microsoft/sqltoolsservice/pull/174#discussion_r92071671"},"pull_request":{"href":"https://api.github.com/repos/Microsoft/sqltoolsservice/pulls/174"}}},"pull_request":{"url":"https://api.github.com/repos/Microsoft/sqltoolsservice/pulls/174","id":97239780,"html_url":"https://github.com/Microsoft/sqltoolsservice/pull/174","diff_url":"https://github.com/Microsoft/sqltoolsservice/pull/174.diff","patch_url":"https://github.com/Microsoft/sqltoolsservice/pull/174.patch","issue_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/issues/174","number":174,"state":"open","locked":false,"title":"Feature/delete peek scripts","user":{"login":"sharonravindran","id":20197043,"avatar_url":"https://avatars.githubusercontent.com/u/20197043?v=3","gravatar_id":"","url":"https://api.github.com/users/sharonravindran","html_url":"https://github.com/sharonravindran","followers_url":"https://api.github.com/users/sharonravindran/followers","following_url":"https://api.github.com/users/sharonravindran/following{/other_user}","gists_url":"https://api.github.com/users/sharonravindran/gists{/gist_id}","starred_url":"https://api.github.com/users/sharonravindran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sharonravindran/subscriptions","organizations_url":"https://api.github.com/users/sharonravindran/orgs","repos_url":"https://api.github.com/users/sharonravindran/repos","events_url":"https://api.github.com/users/sharonravindran/events{/privacy}","received_events_url":"https://api.github.com/users/sharonravindran/received_events","type":"User","site_admin":false},"body":"Deletes the temp folder containing peek definition scripts during shutdown. Closes Microsoft/vscode-mssql/380","created_at":"2016-12-09T02:16:40Z","updated_at":"2016-12-13T00:14:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6e9a14ef1ce7b47751c5789efb9c952ca2cafa18","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/pulls/174/commits","review_comments_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/pulls/174/comments","review_comment_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/issues/174/comments","statuses_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/statuses/40b39f8a041676fe107b8ee4b8ed144a6eafeabc","head":{"label":"Microsoft:feature/deletePeekScripts","ref":"feature/deletePeekScripts","sha":"40b39f8a041676fe107b8ee4b8ed144a6eafeabc","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":63441273,"name":"sqltoolsservice","full_name":"Microsoft/sqltoolsservice","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/sqltoolsservice","description":"SQL Tools API service repo.","fork":false,"url":"https://api.github.com/repos/Microsoft/sqltoolsservice","forks_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/forks","keys_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/teams","hooks_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/events","assignees_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/tags","blobs_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/languages","stargazers_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/subscription","commits_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/merges","archive_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/downloads","issues_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/deployments","created_at":"2016-07-15T18:00:16Z","updated_at":"2016-12-08T21:38:43Z","pushed_at":"2016-12-13T00:11:24Z","git_url":"git://github.com/Microsoft/sqltoolsservice.git","ssh_url":"git@github.com:Microsoft/sqltoolsservice.git","clone_url":"https://github.com/Microsoft/sqltoolsservice.git","svn_url":"https://github.com/Microsoft/sqltoolsservice","homepage":null,"size":14316,"stargazers_count":8,"watchers_count":8,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":9,"forks":3,"open_issues":9,"watchers":8,"default_branch":"dev"}},"base":{"label":"Microsoft:dev","ref":"dev","sha":"9526b4dd4952dbac5ce09deca4aa27b4e858ebd8","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":63441273,"name":"sqltoolsservice","full_name":"Microsoft/sqltoolsservice","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/sqltoolsservice","description":"SQL Tools API service repo.","fork":false,"url":"https://api.github.com/repos/Microsoft/sqltoolsservice","forks_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/forks","keys_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/teams","hooks_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/events","assignees_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/tags","blobs_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/languages","stargazers_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/subscription","commits_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/merges","archive_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/downloads","issues_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/sqltoolsservice/deployments","created_at":"2016-07-15T18:00:16Z","updated_at":"2016-12-08T21:38:43Z","pushed_at":"2016-12-13T00:11:24Z","git_url":"git://github.com/Microsoft/sqltoolsservice.git","ssh_url":"git@github.com:Microsoft/sqltoolsservice.git","clone_url":"https://github.com/Microsoft/sqltoolsservice.git","svn_url":"https://github.com/Microsoft/sqltoolsservice","homepage":null,"size":14316,"stargazers_count":8,"watchers_count":8,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":9,"forks":3,"open_issues":9,"watchers":8,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/sqltoolsservice/pulls/174"},"html":{"href":"https://github.com/Microsoft/sqltoolsservice/pull/174"},"issue":{"href":"https://api.github.com/repos/Microsoft/sqltoolsservice/issues/174"},"comments":{"href":"https://api.github.com/repos/Microsoft/sqltoolsservice/issues/174/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/sqltoolsservice/pulls/174/comments"},"review_comment":{"href":"https://api.github.com/repos/Microsoft/sqltoolsservice/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Microsoft/sqltoolsservice/pulls/174/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/sqltoolsservice/statuses/40b39f8a041676fe107b8ee4b8ed144a6eafeabc"}}}}
{"actor":{"display_login":"sharonravindran"}}