ternjs/tern_for_sublime

tern_jump_to_def to another file after ST restart

Closed this issue · 1 comments

Apparently the plugin can't find the definition in another file unless the definition has been sought for first in that other file.

Steps to reproduce:

  1. Create two files: a.js, b.js.

  2. Set a variable var colorValues = []; in a.js.

  3. Switch to file b.js.

  4. Restart ST3.

  5. In file b.js type colorValues and then try jumping to its definition when cursor is on this word. Result: a popup "Could not find a definition".

It works when:

  1. Switch to file a.js, type colorValues, jump for the definition while cursor is on this word.

  2. Switch to file b.js, jump for the definition on colorValues typed in there. Result: ST3 switches to a.js and correctly places the cursor on the definition.

ST3, latest tern_for_sublime as of today.

Duplicate of #154