atom-ternjs icon indicating copy to clipboard operation
atom-ternjs copied to clipboard

Deal with duplicate declarations

Open Aaron-Pool opened this issue 9 years ago • 0 comments

Hey! I'm an angular developer, and I follow John Pappa's style guide for my general code styling guidlines. This means that, for services, a declaration will look something like this:

function ServiceName(dependencies) {
       return {
               functionName1   : function1
               functionName2   : function1
       }

      /*JSDOCS HERE*/
      function function1() {
      }

      /*JSDOCS HERE*/
      function function2() {
      }
}

Unfortunately, that leads to behavior like this:

screen shot 2016-02-26 at 1 18 17 pm

As you can see, there's a duplicate clogging up the request. And often times when I press enter, it will select the incorrect entry. Is there anything that can be done about this?

Aaron-Pool avatar Feb 26 '16 18:02 Aaron-Pool