{"action":"created","comment":{"url":"https://api.github.com/repos/jdneo/vscode-checkstyle/pulls/comments/155685315","pull_request_review_id":82045580,"id":155685315,"diff_hunk":"@@ -98,6 +99,20 @@ function getDocumentSettings(resource: string): Thenable<ICheckStyleSettings> {\n     return result;\n }\n \n+async function ensureConfigurationFileParam(config: string): Promise<string> {\n+    switch (config.toLowerCase()) {\n+        case 'google_checks':\n+        case 'sun_checks':\n+            return `/${config.toLowerCase()}.xml`;\n+        default:\n+            if (await pathExists(config)) {\n+                return config;\n+            } else {\n+                throw new Error(`The configuration file ${config} does not exist`);\n+            }\n+    }\n+}\n+\n documents.onDidClose((event: TextDocumentChangeEvent) => documentSettings.delete(event.document.uri));\n documents.onDidOpen((event: TextDocumentChangeEvent) => checkstyle(event.document.uri));\n documents.onDidSave((event: TextDocumentChangeEvent) => checkstyle(event.document.uri));","path":"server/src/server.ts","position":44,"original_position":44,"commit_id":"389f830d499fa0d0875746694451c8cb2eaf6335","original_commit_id":"389f830d499fa0d0875746694451c8cb2eaf6335","user":{"login":"jdneo","id":6193897,"avatar_url":"https://avatars1.githubusercontent.com/u/6193897?v=4","gravatar_id":"","url":"https://api.github.com/users/jdneo","html_url":"https://github.com/jdneo","followers_url":"https://api.github.com/users/jdneo/followers","following_url":"https://api.github.com/users/jdneo/following{/other_user}","gists_url":"https://api.github.com/users/jdneo/gists{/gist_id}","starred_url":"https://api.github.com/users/jdneo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdneo/subscriptions","organizations_url":"https://api.github.com/users/jdneo/orgs","repos_url":"https://api.github.com/users/jdneo/repos","events_url":"https://api.github.com/users/jdneo/events{/privacy}","received_events_url":"https://api.github.com/users/jdneo/received_events","type":"User","site_admin":false},"body":"https://github.com/jdneo/vscode-checkstyle/blob/389f830d499fa0d0875746694451c8cb2eaf6335/server/src/server.ts#L143\r\n\r\nthere is a try catch block in this method","created_at":"2017-12-08T01:22:30Z","updated_at":"2017-12-08T01:22:31Z","html_url":"https://github.com/jdneo/vscode-checkstyle/pull/22#discussion_r155685315","pull_request_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/pulls/22","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/jdneo/vscode-checkstyle/pulls/comments/155685315"},"html":{"href":"https://github.com/jdneo/vscode-checkstyle/pull/22#discussion_r155685315"},"pull_request":{"href":"https://api.github.com/repos/jdneo/vscode-checkstyle/pulls/22"}},"in_reply_to_id":155684803},"pull_request":{"url":"https://api.github.com/repos/jdneo/vscode-checkstyle/pulls/22","id":156944912,"html_url":"https://github.com/jdneo/vscode-checkstyle/pull/22","diff_url":"https://github.com/jdneo/vscode-checkstyle/pull/22.diff","patch_url":"https://github.com/jdneo/vscode-checkstyle/pull/22.patch","issue_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/issues/22","number":22,"state":"open","locked":false,"title":"refine the checkstyle configuration setting","user":{"login":"jdneo","id":6193897,"avatar_url":"https://avatars1.githubusercontent.com/u/6193897?v=4","gravatar_id":"","url":"https://api.github.com/users/jdneo","html_url":"https://github.com/jdneo","followers_url":"https://api.github.com/users/jdneo/followers","following_url":"https://api.github.com/users/jdneo/following{/other_user}","gists_url":"https://api.github.com/users/jdneo/gists{/gist_id}","starred_url":"https://api.github.com/users/jdneo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdneo/subscriptions","organizations_url":"https://api.github.com/users/jdneo/orgs","repos_url":"https://api.github.com/users/jdneo/repos","events_url":"https://api.github.com/users/jdneo/events{/privacy}","received_events_url":"https://api.github.com/users/jdneo/received_events","type":"User","site_admin":false},"body":"work item #21 ","created_at":"2017-12-07T09:39:12Z","updated_at":"2017-12-08T01:22:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3927052449efc8b177eea5a3b448b762ad9199f6","assignee":{"login":"jdneo","id":6193897,"avatar_url":"https://avatars1.githubusercontent.com/u/6193897?v=4","gravatar_id":"","url":"https://api.github.com/users/jdneo","html_url":"https://github.com/jdneo","followers_url":"https://api.github.com/users/jdneo/followers","following_url":"https://api.github.com/users/jdneo/following{/other_user}","gists_url":"https://api.github.com/users/jdneo/gists{/gist_id}","starred_url":"https://api.github.com/users/jdneo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdneo/subscriptions","organizations_url":"https://api.github.com/users/jdneo/orgs","repos_url":"https://api.github.com/users/jdneo/repos","events_url":"https://api.github.com/users/jdneo/events{/privacy}","received_events_url":"https://api.github.com/users/jdneo/received_events","type":"User","site_admin":false},"assignees":[{"login":"jdneo","id":6193897,"avatar_url":"https://avatars1.githubusercontent.com/u/6193897?v=4","gravatar_id":"","url":"https://api.github.com/users/jdneo","html_url":"https://github.com/jdneo","followers_url":"https://api.github.com/users/jdneo/followers","following_url":"https://api.github.com/users/jdneo/following{/other_user}","gists_url":"https://api.github.com/users/jdneo/gists{/gist_id}","starred_url":"https://api.github.com/users/jdneo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdneo/subscriptions","organizations_url":"https://api.github.com/users/jdneo/orgs","repos_url":"https://api.github.com/users/jdneo/repos","events_url":"https://api.github.com/users/jdneo/events{/privacy}","received_events_url":"https://api.github.com/users/jdneo/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"Eskibear","id":2351748,"avatar_url":"https://avatars1.githubusercontent.com/u/2351748?v=4","gravatar_id":"","url":"https://api.github.com/users/Eskibear","html_url":"https://github.com/Eskibear","followers_url":"https://api.github.com/users/Eskibear/followers","following_url":"https://api.github.com/users/Eskibear/following{/other_user}","gists_url":"https://api.github.com/users/Eskibear/gists{/gist_id}","starred_url":"https://api.github.com/users/Eskibear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eskibear/subscriptions","organizations_url":"https://api.github.com/users/Eskibear/orgs","repos_url":"https://api.github.com/users/Eskibear/repos","events_url":"https://api.github.com/users/Eskibear/events{/privacy}","received_events_url":"https://api.github.com/users/Eskibear/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/jdneo/vscode-checkstyle/milestones/1","html_url":"https://github.com/jdneo/vscode-checkstyle/milestone/1","labels_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/milestones/1/labels","id":2938340,"number":1,"title":"0.1.0","description":"","creator":{"login":"jdneo","id":6193897,"avatar_url":"https://avatars1.githubusercontent.com/u/6193897?v=4","gravatar_id":"","url":"https://api.github.com/users/jdneo","html_url":"https://github.com/jdneo","followers_url":"https://api.github.com/users/jdneo/followers","following_url":"https://api.github.com/users/jdneo/following{/other_user}","gists_url":"https://api.github.com/users/jdneo/gists{/gist_id}","starred_url":"https://api.github.com/users/jdneo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdneo/subscriptions","organizations_url":"https://api.github.com/users/jdneo/orgs","repos_url":"https://api.github.com/users/jdneo/repos","events_url":"https://api.github.com/users/jdneo/events{/privacy}","received_events_url":"https://api.github.com/users/jdneo/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":11,"state":"open","created_at":"2017-11-27T06:56:25Z","updated_at":"2017-12-07T09:39:12Z","due_on":"2017-12-14T08:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/pulls/22/commits","review_comments_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/pulls/22/comments","review_comment_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/issues/22/comments","statuses_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/statuses/389f830d499fa0d0875746694451c8cb2eaf6335","head":{"label":"jdneo:cs/refine-config-setting","ref":"cs/refine-config-setting","sha":"389f830d499fa0d0875746694451c8cb2eaf6335","user":{"login":"jdneo","id":6193897,"avatar_url":"https://avatars1.githubusercontent.com/u/6193897?v=4","gravatar_id":"","url":"https://api.github.com/users/jdneo","html_url":"https://github.com/jdneo","followers_url":"https://api.github.com/users/jdneo/followers","following_url":"https://api.github.com/users/jdneo/following{/other_user}","gists_url":"https://api.github.com/users/jdneo/gists{/gist_id}","starred_url":"https://api.github.com/users/jdneo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdneo/subscriptions","organizations_url":"https://api.github.com/users/jdneo/orgs","repos_url":"https://api.github.com/users/jdneo/repos","events_url":"https://api.github.com/users/jdneo/events{/privacy}","received_events_url":"https://api.github.com/users/jdneo/received_events","type":"User","site_admin":false},"repo":{"id":111540345,"name":"vscode-checkstyle","full_name":"jdneo/vscode-checkstyle","owner":{"login":"jdneo","id":6193897,"avatar_url":"https://avatars1.githubusercontent.com/u/6193897?v=4","gravatar_id":"","url":"https://api.github.com/users/jdneo","html_url":"https://github.com/jdneo","followers_url":"https://api.github.com/users/jdneo/followers","following_url":"https://api.github.com/users/jdneo/following{/other_user}","gists_url":"https://api.github.com/users/jdneo/gists{/gist_id}","starred_url":"https://api.github.com/users/jdneo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdneo/subscriptions","organizations_url":"https://api.github.com/users/jdneo/orgs","repos_url":"https://api.github.com/users/jdneo/repos","events_url":"https://api.github.com/users/jdneo/events{/privacy}","received_events_url":"https://api.github.com/users/jdneo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jdneo/vscode-checkstyle","description":"Checkstyle extension for VS Code","fork":false,"url":"https://api.github.com/repos/jdneo/vscode-checkstyle","forks_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/forks","keys_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/teams","hooks_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/hooks","issue_events_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/issues/events{/number}","events_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/events","assignees_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/assignees{/user}","branches_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/branches{/branch}","tags_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/tags","blobs_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/git/refs{/sha}","trees_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/statuses/{sha}","languages_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/languages","stargazers_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/stargazers","contributors_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/contributors","subscribers_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/subscribers","subscription_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/subscription","commits_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/commits{/sha}","git_commits_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/git/commits{/sha}","comments_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/comments{/number}","issue_comment_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/issues/comments{/number}","contents_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/contents/{+path}","compare_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/merges","archive_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/downloads","issues_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/issues{/number}","pulls_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/pulls{/number}","milestones_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/milestones{/number}","notifications_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/labels{/name}","releases_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/releases{/id}","deployments_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/deployments","created_at":"2017-11-21T11:31:04Z","updated_at":"2017-12-04T07:53:53Z","pushed_at":"2017-12-07T09:39:13Z","git_url":"git://github.com/jdneo/vscode-checkstyle.git","ssh_url":"git@github.com:jdneo/vscode-checkstyle.git","clone_url":"https://github.com/jdneo/vscode-checkstyle.git","svn_url":"https://github.com/jdneo/vscode-checkstyle","homepage":"https://marketplace.visualstudio.com/items?itemName=shengchen.vscode-checkstyle","size":18676,"stargazers_count":4,"watchers_count":4,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":0,"open_issues":4,"watchers":4,"default_branch":"master"}},"base":{"label":"jdneo:master","ref":"master","sha":"d49fe3c2a51c2b9f7970af7aa5ccc350bae3cc93","user":{"login":"jdneo","id":6193897,"avatar_url":"https://avatars1.githubusercontent.com/u/6193897?v=4","gravatar_id":"","url":"https://api.github.com/users/jdneo","html_url":"https://github.com/jdneo","followers_url":"https://api.github.com/users/jdneo/followers","following_url":"https://api.github.com/users/jdneo/following{/other_user}","gists_url":"https://api.github.com/users/jdneo/gists{/gist_id}","starred_url":"https://api.github.com/users/jdneo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdneo/subscriptions","organizations_url":"https://api.github.com/users/jdneo/orgs","repos_url":"https://api.github.com/users/jdneo/repos","events_url":"https://api.github.com/users/jdneo/events{/privacy}","received_events_url":"https://api.github.com/users/jdneo/received_events","type":"User","site_admin":false},"repo":{"id":111540345,"name":"vscode-checkstyle","full_name":"jdneo/vscode-checkstyle","owner":{"login":"jdneo","id":6193897,"avatar_url":"https://avatars1.githubusercontent.com/u/6193897?v=4","gravatar_id":"","url":"https://api.github.com/users/jdneo","html_url":"https://github.com/jdneo","followers_url":"https://api.github.com/users/jdneo/followers","following_url":"https://api.github.com/users/jdneo/following{/other_user}","gists_url":"https://api.github.com/users/jdneo/gists{/gist_id}","starred_url":"https://api.github.com/users/jdneo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdneo/subscriptions","organizations_url":"https://api.github.com/users/jdneo/orgs","repos_url":"https://api.github.com/users/jdneo/repos","events_url":"https://api.github.com/users/jdneo/events{/privacy}","received_events_url":"https://api.github.com/users/jdneo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jdneo/vscode-checkstyle","description":"Checkstyle extension for VS Code","fork":false,"url":"https://api.github.com/repos/jdneo/vscode-checkstyle","forks_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/forks","keys_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/teams","hooks_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/hooks","issue_events_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/issues/events{/number}","events_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/events","assignees_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/assignees{/user}","branches_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/branches{/branch}","tags_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/tags","blobs_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/git/refs{/sha}","trees_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/statuses/{sha}","languages_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/languages","stargazers_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/stargazers","contributors_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/contributors","subscribers_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/subscribers","subscription_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/subscription","commits_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/commits{/sha}","git_commits_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/git/commits{/sha}","comments_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/comments{/number}","issue_comment_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/issues/comments{/number}","contents_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/contents/{+path}","compare_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/merges","archive_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/downloads","issues_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/issues{/number}","pulls_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/pulls{/number}","milestones_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/milestones{/number}","notifications_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/labels{/name}","releases_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/releases{/id}","deployments_url":"https://api.github.com/repos/jdneo/vscode-checkstyle/deployments","created_at":"2017-11-21T11:31:04Z","updated_at":"2017-12-04T07:53:53Z","pushed_at":"2017-12-07T09:39:13Z","git_url":"git://github.com/jdneo/vscode-checkstyle.git","ssh_url":"git@github.com:jdneo/vscode-checkstyle.git","clone_url":"https://github.com/jdneo/vscode-checkstyle.git","svn_url":"https://github.com/jdneo/vscode-checkstyle","homepage":"https://marketplace.visualstudio.com/items?itemName=shengchen.vscode-checkstyle","size":18676,"stargazers_count":4,"watchers_count":4,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":0,"open_issues":4,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jdneo/vscode-checkstyle/pulls/22"},"html":{"href":"https://github.com/jdneo/vscode-checkstyle/pull/22"},"issue":{"href":"https://api.github.com/repos/jdneo/vscode-checkstyle/issues/22"},"comments":{"href":"https://api.github.com/repos/jdneo/vscode-checkstyle/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/jdneo/vscode-checkstyle/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/jdneo/vscode-checkstyle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jdneo/vscode-checkstyle/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/jdneo/vscode-checkstyle/statuses/389f830d499fa0d0875746694451c8cb2eaf6335"}},"author_association":"OWNER"}}
{"actor":{"display_login":"jdneo"}}