{"action":"closed","number":12,"pull_request":{"url":"https://api.github.com/repos/sourcegraph/go-langserver/pulls/12","id":91251210,"html_url":"https://github.com/sourcegraph/go-langserver/pull/12","diff_url":"https://github.com/sourcegraph/go-langserver/pull/12.diff","patch_url":"https://github.com/sourcegraph/go-langserver/pull/12.patch","issue_url":"https://api.github.com/repos/sourcegraph/go-langserver/issues/12","number":12,"state":"closed","locked":false,"title":"Implement textDocument/documentSymbol","user":{"login":"slimsag","id":3173176,"avatar_url":"https://avatars.githubusercontent.com/u/3173176?v=3","gravatar_id":"","url":"https://api.github.com/users/slimsag","html_url":"https://github.com/slimsag","followers_url":"https://api.github.com/users/slimsag/followers","following_url":"https://api.github.com/users/slimsag/following{/other_user}","gists_url":"https://api.github.com/users/slimsag/gists{/gist_id}","starred_url":"https://api.github.com/users/slimsag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slimsag/subscriptions","organizations_url":"https://api.github.com/users/slimsag/orgs","repos_url":"https://api.github.com/users/slimsag/repos","events_url":"https://api.github.com/users/slimsag/events{/privacy}","received_events_url":"https://api.github.com/users/slimsag/received_events","type":"User","site_admin":false},"body":"`textDocument/documentSymbol` is a part of the LSP (https://github.com/sourcegraph/language-server-protocol/blob/master/protocol.md#document-symbols-request).\r\n\r\nIn particular, it is useful to us because of its similarity to `workspace/symbol` except restricted to a single file ('document'). This means that e.g. when redirecting from a code file's position -> def landing page we only have to ask for a single file's symbols in order to find the symbol's `Name, ContainerName` pair which identify it instead of every symbol in the workspace (in our case, repository). It's worth adding because, for large workspaces, it can change the time taken from ~15s -> 1s or so to perform this operation.","created_at":"2016-10-27T18:03:38Z","updated_at":"2016-10-27T19:00:01Z","closed_at":"2016-10-27T19:00:01Z","merged_at":"2016-10-27T19:00:01Z","merge_commit_sha":"da7319e393bcd9cd682ccf2ec8032d634b4cdc9f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/sourcegraph/go-langserver/pulls/12/commits","review_comments_url":"https://api.github.com/repos/sourcegraph/go-langserver/pulls/12/comments","review_comment_url":"https://api.github.com/repos/sourcegraph/go-langserver/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sourcegraph/go-langserver/issues/12/comments","statuses_url":"https://api.github.com/repos/sourcegraph/go-langserver/statuses/475185a958b685fe7f4714cb0d04f8442234efb7","head":{"label":"sourcegraph:sg/docsymbols","ref":"sg/docsymbols","sha":"475185a958b685fe7f4714cb0d04f8442234efb7","user":{"login":"sourcegraph","id":3979584,"avatar_url":"https://avatars.githubusercontent.com/u/3979584?v=3","gravatar_id":"","url":"https://api.github.com/users/sourcegraph","html_url":"https://github.com/sourcegraph","followers_url":"https://api.github.com/users/sourcegraph/followers","following_url":"https://api.github.com/users/sourcegraph/following{/other_user}","gists_url":"https://api.github.com/users/sourcegraph/gists{/gist_id}","starred_url":"https://api.github.com/users/sourcegraph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sourcegraph/subscriptions","organizations_url":"https://api.github.com/users/sourcegraph/orgs","repos_url":"https://api.github.com/users/sourcegraph/repos","events_url":"https://api.github.com/users/sourcegraph/events{/privacy}","received_events_url":"https://api.github.com/users/sourcegraph/received_events","type":"Organization","site_admin":false},"repo":{"id":70617656,"name":"go-langserver","full_name":"sourcegraph/go-langserver","owner":{"login":"sourcegraph","id":3979584,"avatar_url":"https://avatars.githubusercontent.com/u/3979584?v=3","gravatar_id":"","url":"https://api.github.com/users/sourcegraph","html_url":"https://github.com/sourcegraph","followers_url":"https://api.github.com/users/sourcegraph/followers","following_url":"https://api.github.com/users/sourcegraph/following{/other_user}","gists_url":"https://api.github.com/users/sourcegraph/gists{/gist_id}","starred_url":"https://api.github.com/users/sourcegraph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sourcegraph/subscriptions","organizations_url":"https://api.github.com/users/sourcegraph/orgs","repos_url":"https://api.github.com/users/sourcegraph/repos","events_url":"https://api.github.com/users/sourcegraph/events{/privacy}","received_events_url":"https://api.github.com/users/sourcegraph/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sourcegraph/go-langserver","description":"Go language server to add Go support to editors and other tools that use the Language Server Protocol (LSP)","fork":false,"url":"https://api.github.com/repos/sourcegraph/go-langserver","forks_url":"https://api.github.com/repos/sourcegraph/go-langserver/forks","keys_url":"https://api.github.com/repos/sourcegraph/go-langserver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sourcegraph/go-langserver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sourcegraph/go-langserver/teams","hooks_url":"https://api.github.com/repos/sourcegraph/go-langserver/hooks","issue_events_url":"https://api.github.com/repos/sourcegraph/go-langserver/issues/events{/number}","events_url":"https://api.github.com/repos/sourcegraph/go-langserver/events","assignees_url":"https://api.github.com/repos/sourcegraph/go-langserver/assignees{/user}","branches_url":"https://api.github.com/repos/sourcegraph/go-langserver/branches{/branch}","tags_url":"https://api.github.com/repos/sourcegraph/go-langserver/tags","blobs_url":"https://api.github.com/repos/sourcegraph/go-langserver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sourcegraph/go-langserver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sourcegraph/go-langserver/git/refs{/sha}","trees_url":"https://api.github.com/repos/sourcegraph/go-langserver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sourcegraph/go-langserver/statuses/{sha}","languages_url":"https://api.github.com/repos/sourcegraph/go-langserver/languages","stargazers_url":"https://api.github.com/repos/sourcegraph/go-langserver/stargazers","contributors_url":"https://api.github.com/repos/sourcegraph/go-langserver/contributors","subscribers_url":"https://api.github.com/repos/sourcegraph/go-langserver/subscribers","subscription_url":"https://api.github.com/repos/sourcegraph/go-langserver/subscription","commits_url":"https://api.github.com/repos/sourcegraph/go-langserver/commits{/sha}","git_commits_url":"https://api.github.com/repos/sourcegraph/go-langserver/git/commits{/sha}","comments_url":"https://api.github.com/repos/sourcegraph/go-langserver/comments{/number}","issue_comment_url":"https://api.github.com/repos/sourcegraph/go-langserver/issues/comments{/number}","contents_url":"https://api.github.com/repos/sourcegraph/go-langserver/contents/{+path}","compare_url":"https://api.github.com/repos/sourcegraph/go-langserver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sourcegraph/go-langserver/merges","archive_url":"https://api.github.com/repos/sourcegraph/go-langserver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sourcegraph/go-langserver/downloads","issues_url":"https://api.github.com/repos/sourcegraph/go-langserver/issues{/number}","pulls_url":"https://api.github.com/repos/sourcegraph/go-langserver/pulls{/number}","milestones_url":"https://api.github.com/repos/sourcegraph/go-langserver/milestones{/number}","notifications_url":"https://api.github.com/repos/sourcegraph/go-langserver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sourcegraph/go-langserver/labels{/name}","releases_url":"https://api.github.com/repos/sourcegraph/go-langserver/releases{/id}","deployments_url":"https://api.github.com/repos/sourcegraph/go-langserver/deployments","created_at":"2016-10-11T17:20:56Z","updated_at":"2016-10-25T06:39:39Z","pushed_at":"2016-10-27T19:00:01Z","git_url":"git://github.com/sourcegraph/go-langserver.git","ssh_url":"git@github.com:sourcegraph/go-langserver.git","clone_url":"https://github.com/sourcegraph/go-langserver.git","svn_url":"https://github.com/sourcegraph/go-langserver","homepage":"https://sourcegraph.com","size":136,"stargazers_count":1,"watchers_count":1,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":5,"forks":3,"open_issues":5,"watchers":1,"default_branch":"master"}},"base":{"label":"sourcegraph:master","ref":"master","sha":"cf9896ccce7b90c73ef47deb7846158106913d09","user":{"login":"sourcegraph","id":3979584,"avatar_url":"https://avatars.githubusercontent.com/u/3979584?v=3","gravatar_id":"","url":"https://api.github.com/users/sourcegraph","html_url":"https://github.com/sourcegraph","followers_url":"https://api.github.com/users/sourcegraph/followers","following_url":"https://api.github.com/users/sourcegraph/following{/other_user}","gists_url":"https://api.github.com/users/sourcegraph/gists{/gist_id}","starred_url":"https://api.github.com/users/sourcegraph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sourcegraph/subscriptions","organizations_url":"https://api.github.com/users/sourcegraph/orgs","repos_url":"https://api.github.com/users/sourcegraph/repos","events_url":"https://api.github.com/users/sourcegraph/events{/privacy}","received_events_url":"https://api.github.com/users/sourcegraph/received_events","type":"Organization","site_admin":false},"repo":{"id":70617656,"name":"go-langserver","full_name":"sourcegraph/go-langserver","owner":{"login":"sourcegraph","id":3979584,"avatar_url":"https://avatars.githubusercontent.com/u/3979584?v=3","gravatar_id":"","url":"https://api.github.com/users/sourcegraph","html_url":"https://github.com/sourcegraph","followers_url":"https://api.github.com/users/sourcegraph/followers","following_url":"https://api.github.com/users/sourcegraph/following{/other_user}","gists_url":"https://api.github.com/users/sourcegraph/gists{/gist_id}","starred_url":"https://api.github.com/users/sourcegraph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sourcegraph/subscriptions","organizations_url":"https://api.github.com/users/sourcegraph/orgs","repos_url":"https://api.github.com/users/sourcegraph/repos","events_url":"https://api.github.com/users/sourcegraph/events{/privacy}","received_events_url":"https://api.github.com/users/sourcegraph/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sourcegraph/go-langserver","description":"Go language server to add Go support to editors and other tools that use the Language Server Protocol (LSP)","fork":false,"url":"https://api.github.com/repos/sourcegraph/go-langserver","forks_url":"https://api.github.com/repos/sourcegraph/go-langserver/forks","keys_url":"https://api.github.com/repos/sourcegraph/go-langserver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sourcegraph/go-langserver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sourcegraph/go-langserver/teams","hooks_url":"https://api.github.com/repos/sourcegraph/go-langserver/hooks","issue_events_url":"https://api.github.com/repos/sourcegraph/go-langserver/issues/events{/number}","events_url":"https://api.github.com/repos/sourcegraph/go-langserver/events","assignees_url":"https://api.github.com/repos/sourcegraph/go-langserver/assignees{/user}","branches_url":"https://api.github.com/repos/sourcegraph/go-langserver/branches{/branch}","tags_url":"https://api.github.com/repos/sourcegraph/go-langserver/tags","blobs_url":"https://api.github.com/repos/sourcegraph/go-langserver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sourcegraph/go-langserver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sourcegraph/go-langserver/git/refs{/sha}","trees_url":"https://api.github.com/repos/sourcegraph/go-langserver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sourcegraph/go-langserver/statuses/{sha}","languages_url":"https://api.github.com/repos/sourcegraph/go-langserver/languages","stargazers_url":"https://api.github.com/repos/sourcegraph/go-langserver/stargazers","contributors_url":"https://api.github.com/repos/sourcegraph/go-langserver/contributors","subscribers_url":"https://api.github.com/repos/sourcegraph/go-langserver/subscribers","subscription_url":"https://api.github.com/repos/sourcegraph/go-langserver/subscription","commits_url":"https://api.github.com/repos/sourcegraph/go-langserver/commits{/sha}","git_commits_url":"https://api.github.com/repos/sourcegraph/go-langserver/git/commits{/sha}","comments_url":"https://api.github.com/repos/sourcegraph/go-langserver/comments{/number}","issue_comment_url":"https://api.github.com/repos/sourcegraph/go-langserver/issues/comments{/number}","contents_url":"https://api.github.com/repos/sourcegraph/go-langserver/contents/{+path}","compare_url":"https://api.github.com/repos/sourcegraph/go-langserver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sourcegraph/go-langserver/merges","archive_url":"https://api.github.com/repos/sourcegraph/go-langserver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sourcegraph/go-langserver/downloads","issues_url":"https://api.github.com/repos/sourcegraph/go-langserver/issues{/number}","pulls_url":"https://api.github.com/repos/sourcegraph/go-langserver/pulls{/number}","milestones_url":"https://api.github.com/repos/sourcegraph/go-langserver/milestones{/number}","notifications_url":"https://api.github.com/repos/sourcegraph/go-langserver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sourcegraph/go-langserver/labels{/name}","releases_url":"https://api.github.com/repos/sourcegraph/go-langserver/releases{/id}","deployments_url":"https://api.github.com/repos/sourcegraph/go-langserver/deployments","created_at":"2016-10-11T17:20:56Z","updated_at":"2016-10-25T06:39:39Z","pushed_at":"2016-10-27T19:00:01Z","git_url":"git://github.com/sourcegraph/go-langserver.git","ssh_url":"git@github.com:sourcegraph/go-langserver.git","clone_url":"https://github.com/sourcegraph/go-langserver.git","svn_url":"https://github.com/sourcegraph/go-langserver","homepage":"https://sourcegraph.com","size":136,"stargazers_count":1,"watchers_count":1,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":5,"forks":3,"open_issues":5,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sourcegraph/go-langserver/pulls/12"},"html":{"href":"https://github.com/sourcegraph/go-langserver/pull/12"},"issue":{"href":"https://api.github.com/repos/sourcegraph/go-langserver/issues/12"},"comments":{"href":"https://api.github.com/repos/sourcegraph/go-langserver/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/sourcegraph/go-langserver/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/sourcegraph/go-langserver/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sourcegraph/go-langserver/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/sourcegraph/go-langserver/statuses/475185a958b685fe7f4714cb0d04f8442234efb7"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"slimsag","id":3173176,"avatar_url":"https://avatars.githubusercontent.com/u/3173176?v=3","gravatar_id":"","url":"https://api.github.com/users/slimsag","html_url":"https://github.com/slimsag","followers_url":"https://api.github.com/users/slimsag/followers","following_url":"https://api.github.com/users/slimsag/following{/other_user}","gists_url":"https://api.github.com/users/slimsag/gists{/gist_id}","starred_url":"https://api.github.com/users/slimsag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slimsag/subscriptions","organizations_url":"https://api.github.com/users/slimsag/orgs","repos_url":"https://api.github.com/users/slimsag/repos","events_url":"https://api.github.com/users/slimsag/events{/privacy}","received_events_url":"https://api.github.com/users/slimsag/received_events","type":"User","site_admin":false},"comments":2,"review_comments":9,"commits":4,"additions":145,"deletions":49,"changed_files":4}}
{"actor":{"display_login":"slimsag"}}