Sublime Forum

Goto symbol bug?

#1

Goto symbol seems to show weird behavior for example:

In the top of my javascript file there is the line: import initGui from "./lib/gui.js";
And later in the file a definition: const gui = { ...

The latter is what I would think is a symbol, and what I would want to go to, however using the goto symbol menu will only go to the substring “gui” in the path at the top of the file. This makes the goto feature not very useful since it’s just the first occurrence of the letters gui, not an actual definition.

Is symbol intended to mean something other than a definition, or is this a shortcoming? If there are any workarounds any help is apprectiated otherwise it might be something I should submit as an issue.

0 Likes

#2

Sublime Text doesn’t natively define symbols for variable definitions.

So any (broken) related goto feature is caused by a plugin.

0 Likes

#3

Hm, I’m actually unable to reproduce the behavior now. I guess it’s working as intended now, not sure why I was seeing that before.

0 Likes