Sublime Forum

Goto Definition shows occurrences

#1

I’m using build 3156 of ST3 and I noticed that in my JavaScript code GoTo definition shows all occurrences of where the function exists, rather than it’s definition. This is in an Angular 1 project.

Any idea what might be going on?

0 Likes

#2

Are you using the built-in core JavaScript package or a third-party package like Babel?

0 Likes

#3

Looking at installed plugins it appears AngularJS, Babel, JavaScriptNext - ES6 Syntax are JavaScript related plugins. Is one of those incompatible, or needs special setup?

0 Likes

#4

That’s at least two packages that will try to supplant the built-in JavaScript syntax. To see which one is winning, check the bottom-right corner of the window. What you’re seeing with the symbol list is almost certainly either a bug with one of those packages or a bug caused by their interaction.

0 Likes

#5

Both of those (Bable & JavaScriptNext) seem to have issues, only when I disable both will the proper GoTo behavior return.

Thank you for you help…much better now.

3 Likes