{"action":"created","issue":{"url":"https://api.github.com/repos/ensime/ensime-atom/issues/168","repository_url":"https://api.github.com/repos/ensime/ensime-atom","labels_url":"https://api.github.com/repos/ensime/ensime-atom/issues/168/labels{/name}","comments_url":"https://api.github.com/repos/ensime/ensime-atom/issues/168/comments","events_url":"https://api.github.com/repos/ensime/ensime-atom/issues/168/events","html_url":"https://github.com/ensime/ensime-atom/issues/168","id":132923868,"number":168,"title":"Task description: Use self-api of linter?","user":{"login":"hedefalk","id":116520,"avatar_url":"https://avatars.githubusercontent.com/u/116520?v=3","gravatar_id":"","url":"https://api.github.com/users/hedefalk","html_url":"https://github.com/hedefalk","followers_url":"https://api.github.com/users/hedefalk/followers","following_url":"https://api.github.com/users/hedefalk/following{/other_user}","gists_url":"https://api.github.com/users/hedefalk/gists{/gist_id}","starred_url":"https://api.github.com/users/hedefalk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hedefalk/subscriptions","organizations_url":"https://api.github.com/users/hedefalk/orgs","repos_url":"https://api.github.com/users/hedefalk/repos","events_url":"https://api.github.com/users/hedefalk/events{/privacy}","received_events_url":"https://api.github.com/users/hedefalk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-11T09:18:40Z","updated_at":"2016-02-11T13:12:42Z","closed_at":null,"body":"I was thinking that we might have lost some possibilities using the linter API. One thing I was planning was to attach behaviors to errors and warning - say \"quickfix\". For instance, the command for import suggestions could be attached to the DOM element of an error if we had such an element. But typical usage of linter API doesn't provide that - we leave the entire rendering business to linter. \r\n\r\nI now saw that we can actually probably achieve this with the Self API of linter:\r\n\r\nhttps://github.com/atom-community/linter/wiki/Self-(internal)-API\r\n\r\nThat in combination with the new block decoration API could be really powerful:\r\n\r\nhttp://blog.atom.io/2016/02/03/introducing-block-decorations.html\r\n\r\n\r\n\r\nIn particular:\r\n\r\n`  onDidUpdateMessages(callback:Function<{linter, messages, editor}>)`\r\n\r\nI guess would be  called of an open editor when there where messages being displayed. So here we could use decorations and attach behaviors I think, like quickfix."},"comment":{"url":"https://api.github.com/repos/ensime/ensime-atom/issues/comments/182858028","html_url":"https://github.com/ensime/ensime-atom/issues/168#issuecomment-182858028","issue_url":"https://api.github.com/repos/ensime/ensime-atom/issues/168","id":182858028,"user":{"login":"hedefalk","id":116520,"avatar_url":"https://avatars.githubusercontent.com/u/116520?v=3","gravatar_id":"","url":"https://api.github.com/users/hedefalk","html_url":"https://github.com/hedefalk","followers_url":"https://api.github.com/users/hedefalk/followers","following_url":"https://api.github.com/users/hedefalk/following{/other_user}","gists_url":"https://api.github.com/users/hedefalk/gists{/gist_id}","starred_url":"https://api.github.com/users/hedefalk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hedefalk/subscriptions","organizations_url":"https://api.github.com/users/hedefalk/orgs","repos_url":"https://api.github.com/users/hedefalk/repos","events_url":"https://api.github.com/users/hedefalk/events{/privacy}","received_events_url":"https://api.github.com/users/hedefalk/received_events","type":"User","site_admin":false},"created_at":"2016-02-11T13:12:42Z","updated_at":"2016-02-11T13:12:42Z","body":"@steelbrain Good to know! This was not on my immediate todo, but then I'll wait until something might stabilize as an official API. A button might be good enough actually. And then just have that button create a marker + decoration for some extra features or whatever. \r\n\r\nThanks!\r\n "}}