You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Make autocomplete scope aware for provider api #171
Ideally a given scope in a language would give us hints as to what providers to use.
For instance, the autocomplete-paths provider could automatically be enabled when a language denotes that a given point in a code has a path or filename scope.
Additionally, we should consider possibly allowing users to globally disable common scopes that they may or may not want autocomplete to engage. For example #107 could be solved by disabling autocomplete on the comment scopes
I believe this would just be source.go All the lines that match the go grammar get marked with it, generally it seems that you get a source.x where x is the language that is matched to a given line. In some cases files like ruby templates mix html and ruby syntax so you get different source.x scopes for different parts of the file.
Activity
joefitzgerald commentedon Dec 18, 2014
👍 Go-plus needs to be enabled for the entirety of the language-go grammar. Is this available as a scope?
park9140 commentedon Dec 18, 2014
I believe this would just be
source.goAll the lines that match the go grammar get marked with it, generally it seems that you get asource.xwhere x is the language that is matched to a given line. In some cases files like ruby templates mix html and ruby syntax so you get differentsource.xscopes for different parts of the file.✏️ wrote
scope.xmeantsource.xjoefitzgerald commentedon Dec 18, 2014
Quite right.
joefitzgerald commentedon Dec 18, 2014
This is definitely the direction we should head with this. And eliminate the coupling of AutocompleteManager <-> Editor.
🆕 Register Providers For Scope(s)
Add Provider Blacklist