angular-ui / AngularJS-sublime-package

AngularJS code completion, snippets, go to definition, quick panel search, and more.
MIT License
1.42k stars 169 forks source link

Unwanted Angular suggestions after quotes followed by a comma #49

Closed Martinspire closed 10 years ago

Martinspire commented 10 years ago

I'm not sure if i'm the only one with this problem, but i often type arrays or strings in my code to help with testing (look&feel) and when i'm working in my Angular project files i often type something between quotes, followed by a comma. But when i do that, the suggestions of $apply, $broadcast, $destroy and more are suggested.

So for example, when i type: '', i get the suggestions in my autocomplete. Right after i insert the comma.

For me this is unwanted behaviour as i might be wanting to go to a new line and by pressing Enter on my keyboard i insert the suggestion.

Am i the only one who has this and finds this annoying?

subhaze commented 10 years ago

OK, just confirmed this. I'll look into getting a fix out the door this week.

subhaze commented 10 years ago

There is now away to define the JS scope and add prefixes to avoid in JS completions within the User Settings file. https://github.com/angular-ui/AngularJS-sublime-package#completion-settings