         @documentationView.show()
 
     forceCompletion: ->
+        @force = true
         @autocompletePlus.autocompleteManager.runAutocompletion()
+        @force = false
 
     forceCancel: ->
         @autocompletePlus.autocompleteManager.hideSuggestionList()

        return [] unless options?.editor? and options?.buffer? and options?.cursor?
        prefix = options.prefix

        if prefix.endsWith(';') or prefix.indexOf('..') != -1 or !prefix.length
            @documentationView.hide()
            return []


    disposables: null
    documentationView = null
    maxItems = null
    force = false
    # automcomplete-plus
    autocompletePlus = null
    id: 'atom-ternjs-provider'
    selector: '.source.js'
    blacklist: '.source.js .comment,source.js .string'

    init: (client, documentationView) ->
        atom.packages.activatePackage('autocomplete-plus')
