{"action":"created","comment":{"url":"https://api.github.com/repos/JetBrains/intellij-plugins/pulls/comments/35411790","id":35411790,"diff_hunk":"@@ -0,0 +1,35 @@\n+/*\n+ * Copyright 2000-2015 JetBrains s.r.o.\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ * http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+package com.jetbrains.lang.dart.ide.findUsages;\n+\n+import com.intellij.find.findUsages.FindUsagesHandler;\n+import com.intellij.find.findUsages.FindUsagesHandlerFactory;\n+import com.intellij.psi.PsiElement;\n+import org.jetbrains.annotations.NotNull;\n+import org.jetbrains.annotations.Nullable;\n+\n+public class DartServerFindUsagesHandlerFactory extends FindUsagesHandlerFactory {\n+  @Override\n+  public boolean canFindUsages(@NotNull PsiElement element) {\n+    return true;","path":"Dart/src/com/jetbrains/lang/dart/ide/findUsages/DartServerFindUsagesHandlerFactory.java","position":27,"original_position":27,"commit_id":"6b525c815ec10a7d70a74fe6c02e1356f0f53fb7","original_commit_id":"6b525c815ec10a7d70a74fe6c02e1356f0f53fb7","user":{"login":"alexander-doroshko","id":4499789,"avatar_url":"https://avatars.githubusercontent.com/u/4499789?v=3","gravatar_id":"","url":"https://api.github.com/users/alexander-doroshko","html_url":"https://github.com/alexander-doroshko","followers_url":"https://api.github.com/users/alexander-doroshko/followers","following_url":"https://api.github.com/users/alexander-doroshko/following{/other_user}","gists_url":"https://api.github.com/users/alexander-doroshko/gists{/gist_id}","starred_url":"https://api.github.com/users/alexander-doroshko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexander-doroshko/subscriptions","organizations_url":"https://api.github.com/users/alexander-doroshko/orgs","repos_url":"https://api.github.com/users/alexander-doroshko/repos","events_url":"https://api.github.com/users/alexander-doroshko/events{/privacy}","received_events_url":"https://api.github.com/users/alexander-doroshko/received_events","type":"User","site_admin":false},"body":"Hey! It breaks all Find Usages in all JetBrains IDEs in all languages and frameworks!\r\nfindUsagesHandlerFactory extension point doesn't have lang attribute, so you have to care about applicability yourself.\r\nAdditionally I suggest to keep it switched off by default via DartResolver#isServerDrivenResolution, I think both resolution and find usages should be powered by the same engine.","created_at":"2015-07-24T10:29:41Z","updated_at":"2015-07-24T10:29:41Z","html_url":"https://github.com/JetBrains/intellij-plugins/pull/227#discussion_r35411790","pull_request_url":"https://api.github.com/repos/JetBrains/intellij-plugins/pulls/227","_links":{"self":{"href":"https://api.github.com/repos/JetBrains/intellij-plugins/pulls/comments/35411790"},"html":{"href":"https://github.com/JetBrains/intellij-plugins/pull/227#discussion_r35411790"},"pull_request":{"href":"https://api.github.com/repos/JetBrains/intellij-plugins/pulls/227"}}},"pull_request":{"url":"https://api.github.com/repos/JetBrains/intellij-plugins/pulls/227","id":40715396,"html_url":"https://github.com/JetBrains/intellij-plugins/pull/227","diff_url":"https://github.com/JetBrains/intellij-plugins/pull/227.diff","patch_url":"https://github.com/JetBrains/intellij-plugins/pull/227.patch","issue_url":"https://api.github.com/repos/JetBrains/intellij-plugins/issues/227","number":227,"state":"open","locked":false,"title":"Use DAS for 'Find Usages'.","user":{"login":"scheglov","id":384794,"avatar_url":"https://avatars.githubusercontent.com/u/384794?v=3","gravatar_id":"","url":"https://api.github.com/users/scheglov","html_url":"https://github.com/scheglov","followers_url":"https://api.github.com/users/scheglov/followers","following_url":"https://api.github.com/users/scheglov/following{/other_user}","gists_url":"https://api.github.com/users/scheglov/gists{/gist_id}","starred_url":"https://api.github.com/users/scheglov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scheglov/subscriptions","organizations_url":"https://api.github.com/users/scheglov/orgs","repos_url":"https://api.github.com/users/scheglov/repos","events_url":"https://api.github.com/users/scheglov/events{/privacy}","received_events_url":"https://api.github.com/users/scheglov/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-23T20:36:56Z","updated_at":"2015-07-24T10:29:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"79ceaf8b20e87d46edbae487b3aed8b7af78bd42","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/JetBrains/intellij-plugins/pulls/227/commits","review_comments_url":"https://api.github.com/repos/JetBrains/intellij-plugins/pulls/227/comments","review_comment_url":"https://api.github.com/repos/JetBrains/intellij-plugins/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JetBrains/intellij-plugins/issues/227/comments","statuses_url":"https://api.github.com/repos/JetBrains/intellij-plugins/statuses/6b525c815ec10a7d70a74fe6c02e1356f0f53fb7","head":{"label":"scheglov:find-usages-with-DAS","ref":"find-usages-with-DAS","sha":"6b525c815ec10a7d70a74fe6c02e1356f0f53fb7","user":{"login":"scheglov","id":384794,"avatar_url":"https://avatars.githubusercontent.com/u/384794?v=3","gravatar_id":"","url":"https://api.github.com/users/scheglov","html_url":"https://github.com/scheglov","followers_url":"https://api.github.com/users/scheglov/followers","following_url":"https://api.github.com/users/scheglov/following{/other_user}","gists_url":"https://api.github.com/users/scheglov/gists{/gist_id}","starred_url":"https://api.github.com/users/scheglov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scheglov/subscriptions","organizations_url":"https://api.github.com/users/scheglov/orgs","repos_url":"https://api.github.com/users/scheglov/repos","events_url":"https://api.github.com/users/scheglov/events{/privacy}","received_events_url":"https://api.github.com/users/scheglov/received_events","type":"User","site_admin":false},"repo":{"id":34078014,"name":"intellij-plugins","full_name":"scheglov/intellij-plugins","owner":{"login":"scheglov","id":384794,"avatar_url":"https://avatars.githubusercontent.com/u/384794?v=3","gravatar_id":"","url":"https://api.github.com/users/scheglov","html_url":"https://github.com/scheglov","followers_url":"https://api.github.com/users/scheglov/followers","following_url":"https://api.github.com/users/scheglov/following{/other_user}","gists_url":"https://api.github.com/users/scheglov/gists{/gist_id}","starred_url":"https://api.github.com/users/scheglov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scheglov/subscriptions","organizations_url":"https://api.github.com/users/scheglov/orgs","repos_url":"https://api.github.com/users/scheglov/repos","events_url":"https://api.github.com/users/scheglov/events{/privacy}","received_events_url":"https://api.github.com/users/scheglov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/scheglov/intellij-plugins","description":"Open-source plugins included in the distribution of IntelliJ IDEA Ultimate and other IDEs based on the IntelliJ Platform","fork":true,"url":"https://api.github.com/repos/scheglov/intellij-plugins","forks_url":"https://api.github.com/repos/scheglov/intellij-plugins/forks","keys_url":"https://api.github.com/repos/scheglov/intellij-plugins/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scheglov/intellij-plugins/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scheglov/intellij-plugins/teams","hooks_url":"https://api.github.com/repos/scheglov/intellij-plugins/hooks","issue_events_url":"https://api.github.com/repos/scheglov/intellij-plugins/issues/events{/number}","events_url":"https://api.github.com/repos/scheglov/intellij-plugins/events","assignees_url":"https://api.github.com/repos/scheglov/intellij-plugins/assignees{/user}","branches_url":"https://api.github.com/repos/scheglov/intellij-plugins/branches{/branch}","tags_url":"https://api.github.com/repos/scheglov/intellij-plugins/tags","blobs_url":"https://api.github.com/repos/scheglov/intellij-plugins/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scheglov/intellij-plugins/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scheglov/intellij-plugins/git/refs{/sha}","trees_url":"https://api.github.com/repos/scheglov/intellij-plugins/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scheglov/intellij-plugins/statuses/{sha}","languages_url":"https://api.github.com/repos/scheglov/intellij-plugins/languages","stargazers_url":"https://api.github.com/repos/scheglov/intellij-plugins/stargazers","contributors_url":"https://api.github.com/repos/scheglov/intellij-plugins/contributors","subscribers_url":"https://api.github.com/repos/scheglov/intellij-plugins/subscribers","subscription_url":"https://api.github.com/repos/scheglov/intellij-plugins/subscription","commits_url":"https://api.github.com/repos/scheglov/intellij-plugins/commits{/sha}","git_commits_url":"https://api.github.com/repos/scheglov/intellij-plugins/git/commits{/sha}","comments_url":"https://api.github.com/repos/scheglov/intellij-plugins/comments{/number}","issue_comment_url":"https://api.github.com/repos/scheglov/intellij-plugins/issues/comments{/number}","contents_url":"https://api.github.com/repos/scheglov/intellij-plugins/contents/{+path}","compare_url":"https://api.github.com/repos/scheglov/intellij-plugins/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scheglov/intellij-plugins/merges","archive_url":"https://api.github.com/repos/scheglov/intellij-plugins/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scheglov/intellij-plugins/downloads","issues_url":"https://api.github.com/repos/scheglov/intellij-plugins/issues{/number}","pulls_url":"https://api.github.com/repos/scheglov/intellij-plugins/pulls{/number}","milestones_url":"https://api.github.com/repos/scheglov/intellij-plugins/milestones{/number}","notifications_url":"https://api.github.com/repos/scheglov/intellij-plugins/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scheglov/intellij-plugins/labels{/name}","releases_url":"https://api.github.com/repos/scheglov/intellij-plugins/releases{/id}","created_at":"2015-04-16T20:10:36Z","updated_at":"2015-04-17T18:45:47Z","pushed_at":"2015-07-23T20:35:55Z","git_url":"git://github.com/scheglov/intellij-plugins.git","ssh_url":"git@github.com:scheglov/intellij-plugins.git","clone_url":"https://github.com/scheglov/intellij-plugins.git","svn_url":"https://github.com/scheglov/intellij-plugins","homepage":"http://www.jetbrains.com/idea/","size":125723,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"JetBrains:master","ref":"master","sha":"4fe8a52fa0590bdb372f6349152de8bdfe081bc3","user":{"login":"JetBrains","id":878437,"avatar_url":"https://avatars.githubusercontent.com/u/878437?v=3","gravatar_id":"","url":"https://api.github.com/users/JetBrains","html_url":"https://github.com/JetBrains","followers_url":"https://api.github.com/users/JetBrains/followers","following_url":"https://api.github.com/users/JetBrains/following{/other_user}","gists_url":"https://api.github.com/users/JetBrains/gists{/gist_id}","starred_url":"https://api.github.com/users/JetBrains/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JetBrains/subscriptions","organizations_url":"https://api.github.com/users/JetBrains/orgs","repos_url":"https://api.github.com/users/JetBrains/repos","events_url":"https://api.github.com/users/JetBrains/events{/privacy}","received_events_url":"https://api.github.com/users/JetBrains/received_events","type":"Organization","site_admin":false},"repo":{"id":5453324,"name":"intellij-plugins","full_name":"JetBrains/intellij-plugins","owner":{"login":"JetBrains","id":878437,"avatar_url":"https://avatars.githubusercontent.com/u/878437?v=3","gravatar_id":"","url":"https://api.github.com/users/JetBrains","html_url":"https://github.com/JetBrains","followers_url":"https://api.github.com/users/JetBrains/followers","following_url":"https://api.github.com/users/JetBrains/following{/other_user}","gists_url":"https://api.github.com/users/JetBrains/gists{/gist_id}","starred_url":"https://api.github.com/users/JetBrains/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JetBrains/subscriptions","organizations_url":"https://api.github.com/users/JetBrains/orgs","repos_url":"https://api.github.com/users/JetBrains/repos","events_url":"https://api.github.com/users/JetBrains/events{/privacy}","received_events_url":"https://api.github.com/users/JetBrains/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/JetBrains/intellij-plugins","description":"Open-source plugins included in the distribution of IntelliJ IDEA Ultimate and other IDEs based on the IntelliJ Platform","fork":false,"url":"https://api.github.com/repos/JetBrains/intellij-plugins","forks_url":"https://api.github.com/repos/JetBrains/intellij-plugins/forks","keys_url":"https://api.github.com/repos/JetBrains/intellij-plugins/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JetBrains/intellij-plugins/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JetBrains/intellij-plugins/teams","hooks_url":"https://api.github.com/repos/JetBrains/intellij-plugins/hooks","issue_events_url":"https://api.github.com/repos/JetBrains/intellij-plugins/issues/events{/number}","events_url":"https://api.github.com/repos/JetBrains/intellij-plugins/events","assignees_url":"https://api.github.com/repos/JetBrains/intellij-plugins/assignees{/user}","branches_url":"https://api.github.com/repos/JetBrains/intellij-plugins/branches{/branch}","tags_url":"https://api.github.com/repos/JetBrains/intellij-plugins/tags","blobs_url":"https://api.github.com/repos/JetBrains/intellij-plugins/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JetBrains/intellij-plugins/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JetBrains/intellij-plugins/git/refs{/sha}","trees_url":"https://api.github.com/repos/JetBrains/intellij-plugins/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JetBrains/intellij-plugins/statuses/{sha}","languages_url":"https://api.github.com/repos/JetBrains/intellij-plugins/languages","stargazers_url":"https://api.github.com/repos/JetBrains/intellij-plugins/stargazers","contributors_url":"https://api.github.com/repos/JetBrains/intellij-plugins/contributors","subscribers_url":"https://api.github.com/repos/JetBrains/intellij-plugins/subscribers","subscription_url":"https://api.github.com/repos/JetBrains/intellij-plugins/subscription","commits_url":"https://api.github.com/repos/JetBrains/intellij-plugins/commits{/sha}","git_commits_url":"https://api.github.com/repos/JetBrains/intellij-plugins/git/commits{/sha}","comments_url":"https://api.github.com/repos/JetBrains/intellij-plugins/comments{/number}","issue_comment_url":"https://api.github.com/repos/JetBrains/intellij-plugins/issues/comments{/number}","contents_url":"https://api.github.com/repos/JetBrains/intellij-plugins/contents/{+path}","compare_url":"https://api.github.com/repos/JetBrains/intellij-plugins/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JetBrains/intellij-plugins/merges","archive_url":"https://api.github.com/repos/JetBrains/intellij-plugins/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JetBrains/intellij-plugins/downloads","issues_url":"https://api.github.com/repos/JetBrains/intellij-plugins/issues{/number}","pulls_url":"https://api.github.com/repos/JetBrains/intellij-plugins/pulls{/number}","milestones_url":"https://api.github.com/repos/JetBrains/intellij-plugins/milestones{/number}","notifications_url":"https://api.github.com/repos/JetBrains/intellij-plugins/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JetBrains/intellij-plugins/labels{/name}","releases_url":"https://api.github.com/repos/JetBrains/intellij-plugins/releases{/id}","created_at":"2012-08-17T14:31:20Z","updated_at":"2015-07-24T01:24:50Z","pushed_at":"2015-07-24T10:00:39Z","git_url":"git://github.com/JetBrains/intellij-plugins.git","ssh_url":"git@github.com:JetBrains/intellij-plugins.git","clone_url":"https://github.com/JetBrains/intellij-plugins.git","svn_url":"https://github.com/JetBrains/intellij-plugins","homepage":"http://www.jetbrains.com/idea/","size":159249,"stargazers_count":331,"watchers_count":331,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":175,"mirror_url":null,"open_issues_count":10,"forks":175,"open_issues":10,"watchers":331,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JetBrains/intellij-plugins/pulls/227"},"html":{"href":"https://github.com/JetBrains/intellij-plugins/pull/227"},"issue":{"href":"https://api.github.com/repos/JetBrains/intellij-plugins/issues/227"},"comments":{"href":"https://api.github.com/repos/JetBrains/intellij-plugins/issues/227/comments"},"review_comments":{"href":"https://api.github.com/repos/JetBrains/intellij-plugins/pulls/227/comments"},"review_comment":{"href":"https://api.github.com/repos/JetBrains/intellij-plugins/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JetBrains/intellij-plugins/pulls/227/commits"},"statuses":{"href":"https://api.github.com/repos/JetBrains/intellij-plugins/statuses/6b525c815ec10a7d70a74fe6c02e1356f0f53fb7"}}}}