{"action":"created","issue":{"url":"https://api.github.com/repos/phpactor/phpactor/issues/541","repository_url":"https://api.github.com/repos/phpactor/phpactor","labels_url":"https://api.github.com/repos/phpactor/phpactor/issues/541/labels{/name}","comments_url":"https://api.github.com/repos/phpactor/phpactor/issues/541/comments","events_url":"https://api.github.com/repos/phpactor/phpactor/issues/541/events","html_url":"https://github.com/phpactor/phpactor/issues/541","id":347000037,"node_id":"MDU6SXNzdWUzNDcwMDAwMzc=","number":541,"title":"[emacs] improve class_import when used after completion for a \"use\" statement","user":{"login":"kermorgant","id":10561580,"node_id":"MDQ6VXNlcjEwNTYxNTgw","avatar_url":"https://avatars1.githubusercontent.com/u/10561580?v=4","gravatar_id":"","url":"https://api.github.com/users/kermorgant","html_url":"https://github.com/kermorgant","followers_url":"https://api.github.com/users/kermorgant/followers","following_url":"https://api.github.com/users/kermorgant/following{/other_user}","gists_url":"https://api.github.com/users/kermorgant/gists{/gist_id}","starred_url":"https://api.github.com/users/kermorgant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kermorgant/subscriptions","organizations_url":"https://api.github.com/users/kermorgant/orgs","repos_url":"https://api.github.com/users/kermorgant/repos","events_url":"https://api.github.com/users/kermorgant/events{/privacy}","received_events_url":"https://api.github.com/users/kermorgant/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-08-02T12:57:18Z","updated_at":"2018-08-13T20:31:25Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"In emacs, class_import is currently executed after completion of a class candidate.\r\n\r\nThis stops working when completion happens for a ``use`` statement, because  phpactor detects the completed string as a duplicate and asks for an alias before adding its own use statement.\r\n\r\n![image](https://user-images.githubusercontent.com/10561580/43585127-ee7ab77e-966c-11e8-97c1-443e0ef6f823.png)\r\n\r\n![image](https://user-images.githubusercontent.com/10561580/43585142-ff485e08-966c-11e8-994e-a4494998b695.png)\r\n\r\n\r\nWould it be possible/relevant for phpactor to handle this gracefully ? By that, I thought phpactor could detect that the cursor was positionned just on the potential duplicate, and thus maybe just remove it.\r\n\r\nHow does that sound ?"},"comment":{"url":"https://api.github.com/repos/phpactor/phpactor/issues/comments/412653513","html_url":"https://github.com/phpactor/phpactor/issues/541#issuecomment-412653513","issue_url":"https://api.github.com/repos/phpactor/phpactor/issues/541","id":412653513,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMjY1MzUxMw==","user":{"login":"dantleech","id":530801,"node_id":"MDQ6VXNlcjUzMDgwMQ==","avatar_url":"https://avatars1.githubusercontent.com/u/530801?v=4","gravatar_id":"","url":"https://api.github.com/users/dantleech","html_url":"https://github.com/dantleech","followers_url":"https://api.github.com/users/dantleech/followers","following_url":"https://api.github.com/users/dantleech/following{/other_user}","gists_url":"https://api.github.com/users/dantleech/gists{/gist_id}","starred_url":"https://api.github.com/users/dantleech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dantleech/subscriptions","organizations_url":"https://api.github.com/users/dantleech/orgs","repos_url":"https://api.github.com/users/dantleech/repos","events_url":"https://api.github.com/users/dantleech/events{/privacy}","received_events_url":"https://api.github.com/users/dantleech/received_events","type":"User","site_admin":false},"created_at":"2018-08-13T20:31:25Z","updated_at":"2018-08-13T20:31:25Z","author_association":"COLLABORATOR","body":"Work in progress: https://github.com/phpactor/completion/pull/14#pullrequestreview-145821052"}}
{"actor":{"display_login":"dantleech"}}