{"action":"closed","issue":{"url":"https://api.github.com/repos/atom/autocomplete-plus/issues/590","labels_url":"https://api.github.com/repos/atom/autocomplete-plus/issues/590/labels{/name}","comments_url":"https://api.github.com/repos/atom/autocomplete-plus/issues/590/comments","events_url":"https://api.github.com/repos/atom/autocomplete-plus/issues/590/events","html_url":"https://github.com/atom/autocomplete-plus/issues/590","id":110453549,"number":590,"title":"Confusing documentation","user":{"login":"donaldwasserman","id":5202922,"avatar_url":"https://avatars.githubusercontent.com/u/5202922?v=3","gravatar_id":"","url":"https://api.github.com/users/donaldwasserman","html_url":"https://github.com/donaldwasserman","followers_url":"https://api.github.com/users/donaldwasserman/followers","following_url":"https://api.github.com/users/donaldwasserman/following{/other_user}","gists_url":"https://api.github.com/users/donaldwasserman/gists{/gist_id}","starred_url":"https://api.github.com/users/donaldwasserman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donaldwasserman/subscriptions","organizations_url":"https://api.github.com/users/donaldwasserman/orgs","repos_url":"https://api.github.com/users/donaldwasserman/repos","events_url":"https://api.github.com/users/donaldwasserman/events{/privacy}","received_events_url":"https://api.github.com/users/donaldwasserman/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/atom/autocomplete-plus/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-08T13:40:00Z","updated_at":"2015-10-10T12:41:38Z","closed_at":"2015-10-10T12:41:38Z","body":"Hello - I'm not sure if i'm having problems reading/understanding coffeescript or if the documentation is leading me astray. \r\n\r\nPer the API documentation page, when i call:\r\n\r\n```coffee\r\nprovider = require 'provider'\r\nmodule.exports = \r\n  provide: -> provider\r\n```\r\n\r\nthe `getSuggestions()` method of my provider file doesn't get called. When I define `provide: -> provider.getSuggestions()` I get a console.log warning `Provider object not valid`. My object looks like `{text: 'foo', displayText: 'bar'}`\r\n\r\nI think something is missing from the documentation or I'm missing some sort of coffeescript concept...\r\n"}}