Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

trigger on space and open paren #294

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/autocomplete-manager.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,8 @@ class AutocompleteManager
return if @disposed
return @hideSuggestionList() if @compositionInProgress
autoActivationEnabled = atom.config.get('autocomplete-plus.enableAutoActivation')
wouldAutoActivate = newText.trim().length is 1 or ((@backspaceTriggersAutocomplete or @suggestionList.isActive()) and oldText.trim().length is 1)
# new text can have a length of 2 because of bracket-matcher: (), [], {}, etc.
wouldAutoActivate = newText.length in [1..2] or ((@backspaceTriggersAutocomplete or @suggestionList.isActive()) and oldText.length in [1..2])

if autoActivationEnabled and wouldAutoActivate
@cancelHideSuggestionListRequest()
Expand Down