payload: {"action":"created","comment":{"url":"https://api.github.com/repos/scalacenter/bloop/pulls/comments/287722176","pull_request_review_id":242190015,"id":287722176,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI4NzcyMjE3Ng==","diff_hunk":"@@ -0,0 +1,37 @@\n+---\n+id: dap-integration\n+title: Debug Adapter Protocol Integration \n+sidebar_label: DAP Integration guide\n+---\n+\n+## Debug Adapter Protocol integration guide\n+\n+Bloop allows the client to run and debug both the main classes and the tests defined in the project. \n+This is possible thanks to the Debug Adapter Protocol, which bloop exposes to the client \n+in a run/test task start notification. This adapter expects either a \n+`ScalaTestClassesItem` or `ScalaMainClass` as a configuration parameter for the launch request.\n+\n+### Client-Server communication\n+![communication sequence diagram](assets/dap-sequence.png)\n+\n+1. BSP Client chooses which main class to run. To do so, it requests the list of all runnable main classes from the BSP Server.\n+2. BSP Client request the chosen class to be run.","path":"docs/debug-adapter.md","position":18,"original_position":18,"commit_id":"8d56091a4316dfd353d56c1a3bbf0e5cc11dbeb5","original_commit_id":"8d56091a4316dfd353d56c1a3bbf0e5cc11dbeb5","user":{"login":"marek1840","id":3709537,"node_id":"MDQ6VXNlcjM3MDk1Mzc=","avatar_url":"https://avatars1.githubusercontent.com/u/3709537?v=4","gravatar_id":"","url":"https://api.github.com/users/marek1840","html_url":"https://github.com/marek1840","followers_url":"https://api.github.com/users/marek1840/followers","following_url":"https://api.github.com/users/marek1840/following{/other_user}","gists_url":"https://api.github.com/users/marek1840/gists{/gist_id}","starred_url":"https://api.github.com/users/marek1840/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marek1840/subscriptions","organizations_url":"https://api.github.com/users/marek1840/orgs","repos_url":"https://api.github.com/users/marek1840/repos","events_url":"https://api.github.com/users/marek1840/events{/privacy}","received_events_url":"https://api.github.com/users/marek1840/received_events","type":"User","site_admin":false},"body":"> I am no longer sure if it's a good idea to establish DAP via buildTarget/run\r\nI think it it would be best to introduce a custom JSON-RPC endpoint to start a debug session\r\n\r\nWhy? What are your concerns?","created_at":"2019-05-27T09:43:35Z","updated_at":"2019-05-27T09:43:35Z","html_url":"https://github.com/scalacenter/bloop/pull/904#discussion_r287722176","pull_request_url":"https://api.github.com/repos/scalacenter/bloop/pulls/904","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/scalacenter/bloop/pulls/comments/287722176"},"html":{"href":"https://github.com/scalacenter/bloop/pull/904#discussion_r287722176"},"pull_request":{"href":"https://api.github.com/repos/scalacenter/bloop/pulls/904"}},"in_reply_to_id":287319926},"pull_request":{"url":"https://api.github.com/repos/scalacenter/bloop/pulls/904","id":281976094,"node_id":"MDExOlB1bGxSZXF1ZXN0MjgxOTc2MDk0","html_url":"https://github.com/scalacenter/bloop/pull/904","diff_url":"https://github.com/scalacenter/bloop/pull/904.diff","patch_url":"https://github.com/scalacenter/bloop/pull/904.patch","issue_url":"https://api.github.com/repos/scalacenter/bloop/issues/904","number":904,"state":"open","locked":false,"title":"Describe the DAP integration","user":{"login":"marek1840","id":3709537,"node_id":"MDQ6VXNlcjM3MDk1Mzc=","avatar_url":"https://avatars1.githubusercontent.com/u/3709537?v=4","gravatar_id":"","url":"https://api.github.com/users/marek1840","html_url":"https://github.com/marek1840","followers_url":"https://api.github.com/users/marek1840/followers","following_url":"https://api.github.com/users/marek1840/following{/other_user}","gists_url":"https://api.github.com/users/marek1840/gists{/gist_id}","starred_url":"https://api.github.com/users/marek1840/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marek1840/subscriptions","organizations_url":"https://api.github.com/users/marek1840/orgs","repos_url":"https://api.github.com/users/marek1840/repos","events_url":"https://api.github.com/users/marek1840/events{/privacy}","received_events_url":"https://api.github.com/users/marek1840/received_events","type":"User","site_admin":false},"body":"","created_at":"2019-05-24T11:24:03Z","updated_at":"2019-05-27T09:43:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0d3ed1e5eeb3b15ef5ffeb64c9f12344235f3501","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":801760223,"node_id":"MDU6TGFiZWw4MDE3NjAyMjM=","url":"https://api.github.com/repos/scalacenter/bloop/labels/build%20server","name":"build server","color":"ede917","default":false},{"id":766889535,"node_id":"MDU6TGFiZWw3NjY4ODk1MzU=","url":"https://api.github.com/repos/scalacenter/bloop/labels/docs","name":"docs","color":"d4c5f9","default":false},{"id":757012018,"node_id":"MDU6TGFiZWw3NTcwMTIwMTg=","url":"https://api.github.com/repos/scalacenter/bloop/labels/feature","name":"feature","color":"2360bc","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/scalacenter/bloop/pulls/904/commits","review_comments_url":"https://api.github.com/repos/scalacenter/bloop/pulls/904/comments","review_comment_url":"https://api.github.com/repos/scalacenter/bloop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/scalacenter/bloop/issues/904/comments","statuses_url":"https://api.github.com/repos/scalacenter/bloop/statuses/8d56091a4316dfd353d56c1a3bbf0e5cc11dbeb5","head":{"label":"marek1840:add-dap-integration-guide","ref":"add-dap-integration-guide","sha":"8d56091a4316dfd353d56c1a3bbf0e5cc11dbeb5","user":{"login":"marek1840","id":3709537,"node_id":"MDQ6VXNlcjM3MDk1Mzc=","avatar_url":"https://avatars1.githubusercontent.com/u/3709537?v=4","gravatar_id":"","url":"https://api.github.com/users/marek1840","html_url":"https://github.com/marek1840","followers_url":"https://api.github.com/users/marek1840/followers","following_url":"https://api.github.com/users/marek1840/following{/other_user}","gists_url":"https://api.github.com/users/marek1840/gists{/gist_id}","starred_url":"https://api.github.com/users/marek1840/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marek1840/subscriptions","organizations_url":"https://api.github.com/users/marek1840/orgs","repos_url":"https://api.github.com/users/marek1840/repos","events_url":"https://api.github.com/users/marek1840/events{/privacy}","received_events_url":"https://api.github.com/users/marek1840/received_events","type":"User","site_admin":false},"repo":{"id":164862879,"node_id":"MDEwOlJlcG9zaXRvcnkxNjQ4NjI4Nzk=","name":"bloop","full_name":"marek1840/bloop","private":false,"owner":{"login":"marek1840","id":3709537,"node_id":"MDQ6VXNlcjM3MDk1Mzc=","avatar_url":"https://avatars1.githubusercontent.com/u/3709537?v=4","gravatar_id":"","url":"https://api.github.com/users/marek1840","html_url":"https://github.com/marek1840","followers_url":"https://api.github.com/users/marek1840/followers","following_url":"https://api.github.com/users/marek1840/following{/other_user}","gists_url":"https://api.github.com/users/marek1840/gists{/gist_id}","starred_url":"https://api.github.com/users/marek1840/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marek1840/subscriptions","organizations_url":"https://api.github.com/users/marek1840/orgs","repos_url":"https://api.github.com/users/marek1840/repos","events_url":"https://api.github.com/users/marek1840/events{/privacy}","received_events_url":"https://api.github.com/users/marek1840/received_events","type":"User","site_admin":false},"html_url":"https://github.com/marek1840/bloop","description":"Scala build server and command-line tool for fast developer workflows","fork":true,"url":"https://api.github.com/repos/marek1840/bloop","forks_url":"https://api.github.com/repos/marek1840/bloop/forks","keys_url":"https://api.github.com/repos/marek1840/bloop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marek1840/bloop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marek1840/bloop/teams","hooks_url":"https://api.github.com/repos/marek1840/bloop/hooks","issue_events_url":"https://api.github.com/repos/marek1840/bloop/issues/events{/number}","events_url":"https://api.github.com/repos/marek1840/bloop/events","assignees_url":"https://api.github.com/repos/marek1840/bloop/assignees{/user}","branches_url":"https://api.github.com/repos/marek1840/bloop/branches{/branch}","tags_url":"https://api.github.com/repos/marek1840/bloop/tags","blobs_url":"https://api.github.com/repos/marek1840/bloop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marek1840/bloop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marek1840/bloop/git/refs{/sha}","trees_url":"https://api.github.com/repos/marek1840/bloop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marek1840/bloop/statuses/{sha}","languages_url":"https://api.github.com/repos/marek1840/bloop/languages","stargazers_url":"https://api.github.com/repos/marek1840/bloop/stargazers","contributors_url":"https://api.github.com/repos/marek1840/bloop/contributors","subscribers_url":"https://api.github.com/repos/marek1840/bloop/subscribers","subscription_url":"https://api.github.com/repos/marek1840/bloop/subscription","commits_url":"https://api.github.com/repos/marek1840/bloop/commits{/sha}","git_commits_url":"https://api.github.com/repos/marek1840/bloop/git/commits{/sha}","comments_url":"https://api.github.com/repos/marek1840/bloop/comments{/number}","issue_comment_url":"https://api.github.com/repos/marek1840/bloop/issues/comments{/number}","contents_url":"https://api.github.com/repos/marek1840/bloop/contents/{+path}","compare_url":"https://api.github.com/repos/marek1840/bloop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marek1840/bloop/merges","archive_url":"https://api.github.com/repos/marek1840/bloop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marek1840/bloop/downloads","issues_url":"https://api.github.com/repos/marek1840/bloop/issues{/number}","pulls_url":"https://api.github.com/repos/marek1840/bloop/pulls{/number}","milestones_url":"https://api.github.com/repos/marek1840/bloop/milestones{/number}","notifications_url":"https://api.github.com/repos/marek1840/bloop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marek1840/bloop/labels{/name}","releases_url":"https://api.github.com/repos/marek1840/bloop/releases{/id}","deployments_url":"https://api.github.com/repos/marek1840/bloop/deployments","created_at":"2019-01-09T12:55:51Z","updated_at":"2019-05-22T13:56:52Z","pushed_at":"2019-05-24T11:07:50Z","git_url":"git://github.com/marek1840/bloop.git","ssh_url":"git@github.com:marek1840/bloop.git","clone_url":"https://github.com/marek1840/bloop.git","svn_url":"https://github.com/marek1840/bloop","homepage":"https://scalacenter.github.io/bloop/","size":14078,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"scalacenter:master","ref":"master","sha":"969934307f93b66597a78807d6667fc723cfc10c","user":{"login":"scalacenter","id":16118980,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2MTE4OTgw","avatar_url":"https://avatars2.githubusercontent.com/u/16118980?v=4","gravatar_id":"","url":"https://api.github.com/users/scalacenter","html_url":"https://github.com/scalacenter","followers_url":"https://api.github.com/users/scalacenter/followers","following_url":"https://api.github.com/users/scalacenter/following{/other_user}","gists_url":"https://api.github.com/users/scalacenter/gists{/gist_id}","starred_url":"https://api.github.com/users/scalacenter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scalacenter/subscriptions","organizations_url":"https://api.github.com/users/scalacenter/orgs","repos_url":"https://api.github.com/users/scalacenter/repos","events_url":"https://api.github.com/users/scalacenter/events{/privacy}","received_events_url":"https://api.github.com/users/scalacenter/received_events","type":"Organization","site_admin":false},"repo":{"id":110334159,"node_id":"MDEwOlJlcG9zaXRvcnkxMTAzMzQxNTk=","name":"bloop","full_name":"scalacenter/bloop","private":false,"owner":{"login":"scalacenter","id":16118980,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2MTE4OTgw","avatar_url":"https://avatars2.githubusercontent.com/u/16118980?v=4","gravatar_id":"","url":"https://api.github.com/users/scalacenter","html_url":"https://github.com/scalacenter","followers_url":"https://api.github.com/users/scalacenter/followers","following_url":"https://api.github.com/users/scalacenter/following{/other_user}","gists_url":"https://api.github.com/users/scalacenter/gists{/gist_id}","starred_url":"https://api.github.com/users/scalacenter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scalacenter/subscriptions","organizations_url":"https://api.github.com/users/scalacenter/orgs","repos_url":"https://api.github.com/users/scalacenter/repos","events_url":"https://api.github.com/users/scalacenter/events{/privacy}","received_events_url":"https://api.github.com/users/scalacenter/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/scalacenter/bloop","description":"Bloop is a build server and CLI tool to compile, test and run Scala fast from any editor or build tool.","fork":false,"url":"https://api.github.com/repos/scalacenter/bloop","forks_url":"https://api.github.com/repos/scalacenter/bloop/forks","keys_url":"https://api.github.com/repos/scalacenter/bloop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scalacenter/bloop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scalacenter/bloop/teams","hooks_url":"https://api.github.com/repos/scalacenter/bloop/hooks","issue_events_url":"https://api.github.com/repos/scalacenter/bloop/issues/events{/number}","events_url":"https://api.github.com/repos/scalacenter/bloop/events","assignees_url":"https://api.github.com/repos/scalacenter/bloop/assignees{/user}","branches_url":"https://api.github.com/repos/scalacenter/bloop/branches{/branch}","tags_url":"https://api.github.com/repos/scalacenter/bloop/tags","blobs_url":"https://api.github.com/repos/scalacenter/bloop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scalacenter/bloop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scalacenter/bloop/git/refs{/sha}","trees_url":"https://api.github.com/repos/scalacenter/bloop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scalacenter/bloop/statuses/{sha}","languages_url":"https://api.github.com/repos/scalacenter/bloop/languages","stargazers_url":"https://api.github.com/repos/scalacenter/bloop/stargazers","contributors_url":"https://api.github.com/repos/scalacenter/bloop/contributors","subscribers_url":"https://api.github.com/repos/scalacenter/bloop/subscribers","subscription_url":"https://api.github.com/repos/scalacenter/bloop/subscription","commits_url":"https://api.github.com/repos/scalacenter/bloop/commits{/sha}","git_commits_url":"https://api.github.com/repos/scalacenter/bloop/git/commits{/sha}","comments_url":"https://api.github.com/repos/scalacenter/bloop/comments{/number}","issue_comment_url":"https://api.github.com/repos/scalacenter/bloop/issues/comments{/number}","contents_url":"https://api.github.com/repos/scalacenter/bloop/contents/{+path}","compare_url":"https://api.github.com/repos/scalacenter/bloop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scalacenter/bloop/merges","archive_url":"https://api.github.com/repos/scalacenter/bloop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scalacenter/bloop/downloads","issues_url":"https://api.github.com/repos/scalacenter/bloop/issues{/number}","pulls_url":"https://api.github.com/repos/scalacenter/bloop/pulls{/number}","milestones_url":"https://api.github.com/repos/scalacenter/bloop/milestones{/number}","notifications_url":"https://api.github.com/repos/scalacenter/bloop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scalacenter/bloop/labels{/name}","releases_url":"https://api.github.com/repos/scalacenter/bloop/releases{/id}","deployments_url":"https://api.github.com/repos/scalacenter/bloop/deployments","created_at":"2017-11-11T09:39:34Z","updated_at":"2019-05-25T09:08:16Z","pushed_at":"2019-05-26T09:46:01Z","git_url":"git://github.com/scalacenter/bloop.git","ssh_url":"git@github.com:scalacenter/bloop.git","clone_url":"https://github.com/scalacenter/bloop.git","svn_url":"https://github.com/scalacenter/bloop","homepage":"https://scalacenter.github.io/bloop/","size":14713,"stargazers_count":414,"watchers_count":414,"language":"Scala","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":79,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":43,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":79,"open_issues":43,"watchers":414,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/scalacenter/bloop/pulls/904"},"html":{"href":"https://github.com/scalacenter/bloop/pull/904"},"issue":{"href":"https://api.github.com/repos/scalacenter/bloop/issues/904"},"comments":{"href":"https://api.github.com/repos/scalacenter/bloop/issues/904/comments"},"review_comments":{"href":"https://api.github.com/repos/scalacenter/bloop/pulls/904/comments"},"review_comment":{"href":"https://api.github.com/repos/scalacenter/bloop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/scalacenter/bloop/pulls/904/commits"},"statuses":{"href":"https://api.github.com/repos/scalacenter/bloop/statuses/8d56091a4316dfd353d56c1a3bbf0e5cc11dbeb5"}},"author_association":"CONTRIBUTOR"}}
other: {"actor":{"display_login":"marek1840"}}