AngularJS-sublime-package icon indicating copy to clipboard operation
AngularJS-sublime-package copied to clipboard

Autocompletion triggers on all semi-colons in the php scope

Open alextegelid opened this issue 8 years ago • 2 comments

The AngularJS package is presenting some rather out-of-context completions for me. This screenshot was taken in a php file (scope: source.php) and the autocompletions suggestions appeared right efter I typed the semi-colon.

This behavior gets kind of in the way of writing multiple lines of php code since instead of getting a new line I get a snippet of an angular attribute.

image

alextegelid avatar Apr 12 '16 14:04 alextegelid

I just came across the same issue. You should be able to solve it by customising the settings under Preferences -> Package Settings -> AngularJS -> Settings – User as follows:

{
    "attribute_avoided_scopes": [
        "source.php"
    ]
}

You can find all customisable properties in Preferences -> Package Settings -> AngularJS -> Settings – Default.

edbentinck avatar Apr 15 '16 06:04 edbentinck

Thank you @edbentinck, that's a nice workaround. I'll definitely check out the other settings as well. Customization is the best 😎

alextegelid avatar Apr 15 '16 07:04 alextegelid