Skip to content
This repository has been archived by the owner on May 25, 2019. It is now read-only.

Autocompletion triggers on all semi-colons in the php scope #92

Open
alextegelid opened this issue Apr 12, 2016 · 2 comments
Open

Autocompletion triggers on all semi-colons in the php scope #92

alextegelid opened this issue Apr 12, 2016 · 2 comments

Comments

@alextegelid
Copy link

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

@edbentinck
Copy link

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.

@alextegelid
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants