{"action":"closed","issue":{"url":"https://api.github.com/repos/dart-lang/test/issues/517","repository_url":"https://api.github.com/repos/dart-lang/test","labels_url":"https://api.github.com/repos/dart-lang/test/issues/517/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/test/issues/517/comments","events_url":"https://api.github.com/repos/dart-lang/test/issues/517/events","html_url":"https://github.com/dart-lang/test/issues/517","id":197356321,"number":517,"title":"Attributes on first import don't work well with webstorm actions","user":{"login":"xavierhainaux","id":5110923,"avatar_url":"https://avatars.githubusercontent.com/u/5110923?v=3","gravatar_id":"","url":"https://api.github.com/users/xavierhainaux","html_url":"https://github.com/xavierhainaux","followers_url":"https://api.github.com/users/xavierhainaux/followers","following_url":"https://api.github.com/users/xavierhainaux/following{/other_user}","gists_url":"https://api.github.com/users/xavierhainaux/gists{/gist_id}","starred_url":"https://api.github.com/users/xavierhainaux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xavierhainaux/subscriptions","organizations_url":"https://api.github.com/users/xavierhainaux/orgs","repos_url":"https://api.github.com/users/xavierhainaux/repos","events_url":"https://api.github.com/users/xavierhainaux/events{/privacy}","received_events_url":"https://api.github.com/users/xavierhainaux/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-12-23T11:43:43Z","updated_at":"2016-12-27T20:44:56Z","closed_at":"2016-12-27T20:44:56Z","body":"When I write: \r\n![screenshot320](https://cloud.githubusercontent.com/assets/5110923/21453127/7e9312e6-c90c-11e6-9d27-c2aa97b4f80a.png)\r\n\r\nAnd later, I want to use a Future:\r\n![screenshot321](https://cloud.githubusercontent.com/assets/5110923/21453128/8140187c-c90c-11e6-85fd-6fe56126952b.png)\r\n\r\n\r\nThis result in:\r\n![screenshot322](https://cloud.githubusercontent.com/assets/5110923/21453132/8a95ac16-c90c-11e6-8c44-8c9d03bd918c.png)\r\n\r\nSee that `dart:async` is imported before the `@TestOn`. Which has no effect now.\r\n\r\nThis is even more a problem when the editor collapse your imports by default:\r\n![screenshot323](https://cloud.githubusercontent.com/assets/5110923/21453160/beecbbbc-c90c-11e6-9992-0535532ecef7.png)\r\n\r\nThe same problem can arise if I use the \"Sort members in Dart File\" feature of Webstorm.\r\n\r\nAny chance to be able to write the attributes directly on the main method?\r\n![screenshot325](https://cloud.githubusercontent.com/assets/5110923/21453180/f4a756ea-c90c-11e6-9fbb-23cde258c743.png)\r\n\r\nI know that I can write a `library` directive but it's really a pain."}}
{"actor":{"display_login":"nex3"}}