JavaScriptEnhancements icon indicating copy to clipboard operation
JavaScriptEnhancements copied to clipboard

Cannot 'Jump back' after 'Go to definition'

Open idr4n opened this issue 7 years ago • 0 comments

Hi and thanks for an awesome package!

So this is the problem I'm facing:

Expected Behavior

After using Go to definition either with the mouse or keyboard shortcut, if I press ctrl+- I should get back to the point where I triggered the Go to definition command.

Actual Behavior

Pressing ctrl+-, or selecting the option from the menu (GoTo > Jump Back), does not take me to the point where I triggered Go to definition but to some other point back in history.

Steps to Reproduce the Problem

  1. step on any definition with your cursor, say myVar
  2. press super+alt+g (F10 in my case) or click on Go to definition from the tooltip.
  3. Cursor jumps to the definition of myVar (hopefully!)
  4. press ctrl+- to jump back to myVar where you were initially in step 1.
  5. If you were lucky, it might have taken you back to the desired point, but try several times with different definitions and most likely you will see the unexpected behavior.

Specifications

  • Sublime Text 3 build: 3.1.1
  • OS: MacOS Mojave
  • JavaScript Enhancements version: 0.16.20

idr4n avatar Oct 26 '18 18:10 idr4n