{"action":"created","comment":{"url":"https://api.github.com/repos/atom/symbols-view/pulls/comments/25908322","id":25908322,"diff_hunk":"@@ -1,44 +1,39 @@\n {Task} = require 'atom'\n ctags = require 'ctags'\n-fs = require 'fs-plus'\n+async = require 'async'\n+getTagsFile = require \"./get-tags-file\"\n \n handlerPath = require.resolve './load-tags-handler'\n \n module.exports =\n-  getTagsFile: ->\n-    [directory] = atom.project.getDirectories()\n-    return unless directory?\n-\n-    tagsFile = directory.resolve(\"tags\")\n-    return tagsFile if fs.isFileSync(tagsFile)\n-\n-    tagsFile = directory.resolve(\"TAGS\")\n-    return tagsFile if fs.isFileSync(tagsFile)\n-\n-    tagsFile = directory.resolve(\".tags\")\n-    return tagsFile if fs.isFileSync(tagsFile)\n-\n-    tagsFile = directory.resolve(\".TAGS\")\n-    return tagsFile if fs.isFileSync(tagsFile)\n-\n   find: (editor, callback) ->\n     if editor.getLastCursor().getScopeDescriptor().getScopesArray().indexOf('source.ruby') isnt -1\n       # Include ! and ? in word regular expression for ruby files\n       range = editor.getLastCursor().getCurrentWordBufferRange(wordRegex: /[\\w!?]*/g)\n     else\n       range = editor.getLastCursor().getCurrentWordBufferRange()\n+\n     symbol = editor.getTextInRange(range)\n \n-    tagsFile = @getTagsFile()\n+    unless symbol?.length > 0\n+      return process.nextTick -> callback(null, [])\n \n-    if symbol?.length > 0 and tagsFile\n-      ctags.findTags(tagsFile, symbol, callback)\n-    else\n-      process.nextTick -> callback(null, [])\n+    allTags = []\n+\n+    async.each(\n+      atom.project.getPaths(),\n+      (projectPath, done) =>\n+        tagsFile = getTagsFile(projectPath)\n+        return done() unless tagsFile?\n+        ctags.findTags tagsFile, symbol, (err, tags=[]) ->\n+          tag.directory = projectPath for tag in tags\n+          allTags.push(tags...)","path":"lib/tag-reader.coffee","position":52,"original_position":52,"commit_id":"528e522aa7ad81eb5bd38ffcb44500224984637b","original_commit_id":"528e522aa7ad81eb5bd38ffcb44500224984637b","user":{"login":"kevinsawicki","id":671378,"avatar_url":"https://avatars.githubusercontent.com/u/671378?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinsawicki","html_url":"https://github.com/kevinsawicki","followers_url":"https://api.github.com/users/kevinsawicki/followers","following_url":"https://api.github.com/users/kevinsawicki/following{/other_user}","gists_url":"https://api.github.com/users/kevinsawicki/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinsawicki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinsawicki/subscriptions","organizations_url":"https://api.github.com/users/kevinsawicki/orgs","repos_url":"https://api.github.com/users/kevinsawicki/repos","events_url":"https://api.github.com/users/kevinsawicki/events{/privacy}","received_events_url":"https://api.github.com/users/kevinsawicki/received_events","type":"User","site_admin":true},"body":"Actually maybe this won't be an issue since it used to do this anyway down on the old line 43","created_at":"2015-03-05T22:28:13Z","updated_at":"2015-03-05T22:28:13Z","html_url":"https://github.com/atom/symbols-view/pull/82#discussion_r25908322","pull_request_url":"https://api.github.com/repos/atom/symbols-view/pulls/82","_links":{"self":{"href":"https://api.github.com/repos/atom/symbols-view/pulls/comments/25908322"},"html":{"href":"https://github.com/atom/symbols-view/pull/82#discussion_r25908322"},"pull_request":{"href":"https://api.github.com/repos/atom/symbols-view/pulls/82"}}},"pull_request":{"url":"https://api.github.com/repos/atom/symbols-view/pulls/82","id":30492179,"html_url":"https://github.com/atom/symbols-view/pull/82","diff_url":"https://github.com/atom/symbols-view/pull/82.diff","patch_url":"https://github.com/atom/symbols-view/pull/82.patch","issue_url":"https://api.github.com/repos/atom/symbols-view/issues/82","number":82,"state":"open","locked":false,"title":"Support multiple root directories","user":{"login":"maxbrunsfeld","id":326587,"avatar_url":"https://avatars.githubusercontent.com/u/326587?v=3","gravatar_id":"","url":"https://api.github.com/users/maxbrunsfeld","html_url":"https://github.com/maxbrunsfeld","followers_url":"https://api.github.com/users/maxbrunsfeld/followers","following_url":"https://api.github.com/users/maxbrunsfeld/following{/other_user}","gists_url":"https://api.github.com/users/maxbrunsfeld/gists{/gist_id}","starred_url":"https://api.github.com/users/maxbrunsfeld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxbrunsfeld/subscriptions","organizations_url":"https://api.github.com/users/maxbrunsfeld/orgs","repos_url":"https://api.github.com/users/maxbrunsfeld/repos","events_url":"https://api.github.com/users/maxbrunsfeld/events{/privacy}","received_events_url":"https://api.github.com/users/maxbrunsfeld/received_events","type":"User","site_admin":true},"body":"Refs atom/atom#770","created_at":"2015-03-04T18:43:48Z","updated_at":"2015-03-05T22:28:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0035dd2112878fe12e0c0b2829381282653c69d6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/atom/symbols-view/pulls/82/commits","review_comments_url":"https://api.github.com/repos/atom/symbols-view/pulls/82/comments","review_comment_url":"https://api.github.com/repos/atom/symbols-view/pulls/comments{/number}","comments_url":"https://api.github.com/repos/atom/symbols-view/issues/82/comments","statuses_url":"https://api.github.com/repos/atom/symbols-view/statuses/528e522aa7ad81eb5bd38ffcb44500224984637b","head":{"label":"atom:mb-multiple-root-directories","ref":"mb-multiple-root-directories","sha":"528e522aa7ad81eb5bd38ffcb44500224984637b","user":{"login":"atom","id":1089146,"avatar_url":"https://avatars.githubusercontent.com/u/1089146?v=3","gravatar_id":"","url":"https://api.github.com/users/atom","html_url":"https://github.com/atom","followers_url":"https://api.github.com/users/atom/followers","following_url":"https://api.github.com/users/atom/following{/other_user}","gists_url":"https://api.github.com/users/atom/gists{/gist_id}","starred_url":"https://api.github.com/users/atom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atom/subscriptions","organizations_url":"https://api.github.com/users/atom/orgs","repos_url":"https://api.github.com/users/atom/repos","events_url":"https://api.github.com/users/atom/events{/privacy}","received_events_url":"https://api.github.com/users/atom/received_events","type":"Organization","site_admin":false},"repo":{"id":12087435,"name":"symbols-view","full_name":"atom/symbols-view","owner":{"login":"atom","id":1089146,"avatar_url":"https://avatars.githubusercontent.com/u/1089146?v=3","gravatar_id":"","url":"https://api.github.com/users/atom","html_url":"https://github.com/atom","followers_url":"https://api.github.com/users/atom/followers","following_url":"https://api.github.com/users/atom/following{/other_user}","gists_url":"https://api.github.com/users/atom/gists{/gist_id}","starred_url":"https://api.github.com/users/atom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atom/subscriptions","organizations_url":"https://api.github.com/users/atom/orgs","repos_url":"https://api.github.com/users/atom/repos","events_url":"https://api.github.com/users/atom/events{/privacy}","received_events_url":"https://api.github.com/users/atom/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/atom/symbols-view","description":"Jump to symbols in Atom","fork":false,"url":"https://api.github.com/repos/atom/symbols-view","forks_url":"https://api.github.com/repos/atom/symbols-view/forks","keys_url":"https://api.github.com/repos/atom/symbols-view/keys{/key_id}","collaborators_url":"https://api.github.com/repos/atom/symbols-view/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/atom/symbols-view/teams","hooks_url":"https://api.github.com/repos/atom/symbols-view/hooks","issue_events_url":"https://api.github.com/repos/atom/symbols-view/issues/events{/number}","events_url":"https://api.github.com/repos/atom/symbols-view/events","assignees_url":"https://api.github.com/repos/atom/symbols-view/assignees{/user}","branches_url":"https://api.github.com/repos/atom/symbols-view/branches{/branch}","tags_url":"https://api.github.com/repos/atom/symbols-view/tags","blobs_url":"https://api.github.com/repos/atom/symbols-view/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/atom/symbols-view/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/atom/symbols-view/git/refs{/sha}","trees_url":"https://api.github.com/repos/atom/symbols-view/git/trees{/sha}","statuses_url":"https://api.github.com/repos/atom/symbols-view/statuses/{sha}","languages_url":"https://api.github.com/repos/atom/symbols-view/languages","stargazers_url":"https://api.github.com/repos/atom/symbols-view/stargazers","contributors_url":"https://api.github.com/repos/atom/symbols-view/contributors","subscribers_url":"https://api.github.com/repos/atom/symbols-view/subscribers","subscription_url":"https://api.github.com/repos/atom/symbols-view/subscription","commits_url":"https://api.github.com/repos/atom/symbols-view/commits{/sha}","git_commits_url":"https://api.github.com/repos/atom/symbols-view/git/commits{/sha}","comments_url":"https://api.github.com/repos/atom/symbols-view/comments{/number}","issue_comment_url":"https://api.github.com/repos/atom/symbols-view/issues/comments{/number}","contents_url":"https://api.github.com/repos/atom/symbols-view/contents/{+path}","compare_url":"https://api.github.com/repos/atom/symbols-view/compare/{base}...{head}","merges_url":"https://api.github.com/repos/atom/symbols-view/merges","archive_url":"https://api.github.com/repos/atom/symbols-view/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/atom/symbols-view/downloads","issues_url":"https://api.github.com/repos/atom/symbols-view/issues{/number}","pulls_url":"https://api.github.com/repos/atom/symbols-view/pulls{/number}","milestones_url":"https://api.github.com/repos/atom/symbols-view/milestones{/number}","notifications_url":"https://api.github.com/repos/atom/symbols-view/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/atom/symbols-view/labels{/name}","releases_url":"https://api.github.com/repos/atom/symbols-view/releases{/id}","created_at":"2013-08-13T17:01:38Z","updated_at":"2015-02-27T16:52:28Z","pushed_at":"2015-03-05T22:11:47Z","git_url":"git://github.com/atom/symbols-view.git","ssh_url":"git@github.com:atom/symbols-view.git","clone_url":"https://github.com/atom/symbols-view.git","svn_url":"https://github.com/atom/symbols-view","homepage":null,"size":1596,"stargazers_count":33,"watchers_count":33,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":28,"mirror_url":null,"open_issues_count":32,"forks":28,"open_issues":32,"watchers":33,"default_branch":"master"}},"base":{"label":"atom:master","ref":"master","sha":"902c0d2d340dc81664c460567a6a9a560d659f87","user":{"login":"atom","id":1089146,"avatar_url":"https://avatars.githubusercontent.com/u/1089146?v=3","gravatar_id":"","url":"https://api.github.com/users/atom","html_url":"https://github.com/atom","followers_url":"https://api.github.com/users/atom/followers","following_url":"https://api.github.com/users/atom/following{/other_user}","gists_url":"https://api.github.com/users/atom/gists{/gist_id}","starred_url":"https://api.github.com/users/atom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atom/subscriptions","organizations_url":"https://api.github.com/users/atom/orgs","repos_url":"https://api.github.com/users/atom/repos","events_url":"https://api.github.com/users/atom/events{/privacy}","received_events_url":"https://api.github.com/users/atom/received_events","type":"Organization","site_admin":false},"repo":{"id":12087435,"name":"symbols-view","full_name":"atom/symbols-view","owner":{"login":"atom","id":1089146,"avatar_url":"https://avatars.githubusercontent.com/u/1089146?v=3","gravatar_id":"","url":"https://api.github.com/users/atom","html_url":"https://github.com/atom","followers_url":"https://api.github.com/users/atom/followers","following_url":"https://api.github.com/users/atom/following{/other_user}","gists_url":"https://api.github.com/users/atom/gists{/gist_id}","starred_url":"https://api.github.com/users/atom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atom/subscriptions","organizations_url":"https://api.github.com/users/atom/orgs","repos_url":"https://api.github.com/users/atom/repos","events_url":"https://api.github.com/users/atom/events{/privacy}","received_events_url":"https://api.github.com/users/atom/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/atom/symbols-view","description":"Jump to symbols in Atom","fork":false,"url":"https://api.github.com/repos/atom/symbols-view","forks_url":"https://api.github.com/repos/atom/symbols-view/forks","keys_url":"https://api.github.com/repos/atom/symbols-view/keys{/key_id}","collaborators_url":"https://api.github.com/repos/atom/symbols-view/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/atom/symbols-view/teams","hooks_url":"https://api.github.com/repos/atom/symbols-view/hooks","issue_events_url":"https://api.github.com/repos/atom/symbols-view/issues/events{/number}","events_url":"https://api.github.com/repos/atom/symbols-view/events","assignees_url":"https://api.github.com/repos/atom/symbols-view/assignees{/user}","branches_url":"https://api.github.com/repos/atom/symbols-view/branches{/branch}","tags_url":"https://api.github.com/repos/atom/symbols-view/tags","blobs_url":"https://api.github.com/repos/atom/symbols-view/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/atom/symbols-view/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/atom/symbols-view/git/refs{/sha}","trees_url":"https://api.github.com/repos/atom/symbols-view/git/trees{/sha}","statuses_url":"https://api.github.com/repos/atom/symbols-view/statuses/{sha}","languages_url":"https://api.github.com/repos/atom/symbols-view/languages","stargazers_url":"https://api.github.com/repos/atom/symbols-view/stargazers","contributors_url":"https://api.github.com/repos/atom/symbols-view/contributors","subscribers_url":"https://api.github.com/repos/atom/symbols-view/subscribers","subscription_url":"https://api.github.com/repos/atom/symbols-view/subscription","commits_url":"https://api.github.com/repos/atom/symbols-view/commits{/sha}","git_commits_url":"https://api.github.com/repos/atom/symbols-view/git/commits{/sha}","comments_url":"https://api.github.com/repos/atom/symbols-view/comments{/number}","issue_comment_url":"https://api.github.com/repos/atom/symbols-view/issues/comments{/number}","contents_url":"https://api.github.com/repos/atom/symbols-view/contents/{+path}","compare_url":"https://api.github.com/repos/atom/symbols-view/compare/{base}...{head}","merges_url":"https://api.github.com/repos/atom/symbols-view/merges","archive_url":"https://api.github.com/repos/atom/symbols-view/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/atom/symbols-view/downloads","issues_url":"https://api.github.com/repos/atom/symbols-view/issues{/number}","pulls_url":"https://api.github.com/repos/atom/symbols-view/pulls{/number}","milestones_url":"https://api.github.com/repos/atom/symbols-view/milestones{/number}","notifications_url":"https://api.github.com/repos/atom/symbols-view/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/atom/symbols-view/labels{/name}","releases_url":"https://api.github.com/repos/atom/symbols-view/releases{/id}","created_at":"2013-08-13T17:01:38Z","updated_at":"2015-02-27T16:52:28Z","pushed_at":"2015-03-05T22:11:47Z","git_url":"git://github.com/atom/symbols-view.git","ssh_url":"git@github.com:atom/symbols-view.git","clone_url":"https://github.com/atom/symbols-view.git","svn_url":"https://github.com/atom/symbols-view","homepage":null,"size":1596,"stargazers_count":33,"watchers_count":33,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":28,"mirror_url":null,"open_issues_count":32,"forks":28,"open_issues":32,"watchers":33,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/atom/symbols-view/pulls/82"},"html":{"href":"https://github.com/atom/symbols-view/pull/82"},"issue":{"href":"https://api.github.com/repos/atom/symbols-view/issues/82"},"comments":{"href":"https://api.github.com/repos/atom/symbols-view/issues/82/comments"},"review_comments":{"href":"https://api.github.com/repos/atom/symbols-view/pulls/82/comments"},"review_comment":{"href":"https://api.github.com/repos/atom/symbols-view/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/atom/symbols-view/pulls/82/commits"},"statuses":{"href":"https://api.github.com/repos/atom/symbols-view/statuses/528e522aa7ad81eb5bd38ffcb44500224984637b"}}}}