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

Disabling Inline Annotation for Dependency Injection #61

Open

Description

@rbutera

Is there a flag for disabling inline annotation of controller definitions etc for those of us that use things like ngMin and ngAnnotate?

If not, am I doing something wrong? typing in additional dependencies when you are editing an existing controller/service/directive/etc often feels painful and slow, as you have to type them twice!

Activity

  1. subhaze commented on Jul 8, 2014

    @subhaze
    Contributor

    Currently there is not a flag specifically for the (DI) completions, but, that can be added in. Right now the only way to turn those off is to turn off all the JS completions via disable_default_js_completions https://github.com/angular-ui/AngularJS-sublime-package/blob/master/AngularJS-sublime-package.sublime-settings#L17

    I'll get a flag in specifically for the (DI) completions on the next update.

    Thanks for the feedback.

  2. subhaze commented on Aug 2, 2014

    @subhaze
    Contributor

    @raibutera Looking back on this I see that I missed the overall point of the question when answering it previously. The flag for the DI completions wont help here, but, still needs to be added, however, below I'll explain how you can override the current completions to hopefully get things to where you'd like them.

    If I'm reading correctly you just want to type:

    .contr[tab] and it turn into .controller('|', function(|){... ?

    If so you can override these completions so that they do not add in the extra bits you don't want.

    You can see the defaults at: Preferences > Package Settings > AngularJS > JavaScript Completions - Default

    And can override the js_completions by editing: Preferences > Package Settings > AngularJS > JavaScript Completions - User

    The base file would look something like:

    {
      "js_completions": [
        // your new stuff here
      ]
    }
  3. srph commented on Sep 13, 2014

    @srph

    I'll just leave this gist here if anyone needs it.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions