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

autocomplete-plus vNext - #184

Closed
joefitzgerald wants to merge 1 commit into
masterfrom
autocomplete-plus-next
Closed

joefitzgerald wants to merge 1 commit into
masterfrom
autocomplete-plus-next

Conversation

@joefitzgerald

Copy link
Copy Markdown
Contributor

Make significant, breaking changes to advance the autocomplete-plus Provider API and allow further enhancements in the future that can be backward compatible.

This PR will be done when the following are complete:

  • Make AutocompleteManager a singleton
  • Deprecate Provider
  • Deprecate Suggestion
  • Document acceptable properties in an anonymous object for a suggestion
  • Deprecate registration functions for existing providers
  • Take on dependency to service-hub for provider registration
  • Build helper function(s) that can be passed to providers and provide default behavior (like prefixOfSelection in Provider, today)
  • Evolve the options object passed to Providers to allow Providers to be completely decoupled from the editor (so they can be singleton also)
  • Allow Providers to be asynchronous in providing suggestions back to AutocompleteManager
  • Further decouple the suggestion list model from AutocompleteManager (introduce SuggestionList?)
  • Add logic to determine which provider(s) to invoke based on the scope for the current cursor's position
  • Add logic to determine the correct order of suggestions from providers based on the specificity of the scope provided during provider registration
  • Filter suggestions to remove duplicates (Autocomplete showing duplicate results #84)
  • Filter suggestions by prefix so that providers don't have to do it themselves (ngc resolves to ngResource #169)
  • Allow suggestions to indicate whether autocomplete should be re-triggered immediately after confirming the selected suggestion
  • Rename SelectListElement to SuggestionListElement
  • Make FuzzyProvider an option of last resort, used only when no suggestions exist (or when no provider exists for a file), and something which can be globally disabled
  • Suppress Activation For Some Scopes, Make Scopes Configurable (Suppress Activation For Some Scopes, Make Scopes Configurable #88)
  • Coordinate updates to existing providers / create PRs against most popular providers where necessary

Fixes: #29, #36, #84, #88, #169, #171

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add priority stuff to suggestions

1 participant