Provider Autocoplete creation help

Hello, I’m new to this Forum and I need your help. It is not easy to find articles that give complete and easy to understand information on how to create a provider for autoComplete.

For now I have created a “my-package” package with the Atom generator and I have created two files in the “lib” folder, named “main.coffee” and “provider.coffee”.

I think a lot of code is missing in these files, but I’m missing the documentation that explains what needs to be done.

main.coffee

`provider = require ‘./provider’

module.exports =
activate: -> provider.load()

getProvider: -> provider
`
provider.coffee

`module.exports =
selector: ‘.source.js, .source.coffee’
disableForSelector: ‘.source.js .comment’
inclusionPriority: 1
excludeLowerPriority: true
suggestionPriority: 2

getSuggestions: ({editor, bufferPosition, scopeDescriptor, prefix}) ->
new Promise (resolve) ->
# Find your suggestions here
suggestion =
text: ‘testFunction’ # OR
snippet: ‘testFunction($1)$2’
displayText: ‘’ # (optional)
replacementPrefix: ‘so’ # (optional)
type: ‘function’ # (optional)
leftLabel: ‘’ # (optional)
leftLabelHTML: ‘’ # (optional)
rightLabel: ‘’ # (optional)
rightLabelHTML: ‘’ # (optional)
className: ‘’ # (optional)
iconHTML: ‘’ # (optional)
description: ‘’ # (optional)
descriptionMoreURL: ‘’ # (optional)
characterMatchIndices: [0, 1, 2] # (optional)
resolve([suggestion])
`

Thanks for your help.