Minimal autocomplete provider


#1

I am trying to get a minimal autocomplete provider up and running but have so far not succeeded in receiving the getProvider call from autocomplete-plus. What I have is:

my package.json:

{
  "name": "coff",
  "main": "./lib/main",
  "version": "0.0.0",
  "description": "the coff test",
  "keywords": [],
  "license": "MIT",
  "engines": {
    "atom": ">=1.0.0 <2.0.0"
  },
  "dependencies": {},
  "providerServices": {
    "autocomplete.provider": {
      "versions": {
        "2.0.0": "getProvider"
      }
    }
  }
}

And lib/main.coffee:

console.log "at main.coffee"
module.export =
  getProvider: -> 
    console.log "at getProvider"
    require('./provider')

And lib/provider.coffee:

module.exports =
  selector: '.source.python'
  disableForSelector: '.source.python .comment'
  inclusionPriority: 1
  excludeLowerPriority: true

  getSuggestions: ({editor, bufferPosition, scopeDescriptor, prefix, activatedManually}) ->
    console.log "at getSuggestions"

  onDidInsertSuggestion: ({editor, triggerPosition, suggestion}) ->
    console.log "at onDidInsertSuggestion"

  dispose: ->
    console.log "at dispose"

I do see “at main.coffee” in the dev tools console, so I know my package is being loaded, but I never see “at getProvider”.

What am I doing wrong?


#2

This should be providedServices.