Community
Participate
Working Groups
Given an offset (hover or selection) we should be able to find the declaration of a chosen token (if there is one). This would be immediately usable for hover / ctrl-click navigation for parameters / function calls / object properties. Our current mark occurrences support finds declaring nodes, so we should be able to extend that support to find a decl.
I added a command impl and some unit tests, the command is not hooked up yet in the JS plugin due to some other conflicting changes I'm not ready to commit yet: http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=2246385e5a090a43efd09e1e17f408bb9269e922
(In reply to Michael Rennie from comment #1) > I added a command impl and some unit tests, the command is not hooked up yet > in the JS plugin due to some other conflicting changes I'm not ready to > commit yet: > > http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/ > ?id=2246385e5a090a43efd09e1e17f408bb9269e922 Hooked the command up in the plugin: http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=2c02aeb10fc0f6017e6a827a7a40bae2a80f045b
(In reply to Michael Rennie from comment #2) > (In reply to Michael Rennie from comment #1) > > I added a command impl and some unit tests, the command is not hooked up yet > > in the JS plugin due to some other conflicting changes I'm not ready to > > commit yet: > > > > http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/ > > ?id=2246385e5a090a43efd09e1e17f408bb9269e922 > > Hooked the command up in the plugin: > http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/ > ?id=2c02aeb10fc0f6017e6a827a7a40bae2a80f045b Added support hooks for define/require/importScripts pending new API to actually be able to open another file from a command invocation: http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=ba6aee308818b386571a9ce40f6f395374252830
Fixed in: http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=9c353ad48aa9c2e0b55f2ae8b9abe833daea2554 The new support uses Tern to find definitions. It currently only works in the current file context, but with the coming fix for bug 464821 it will work across files. The support for being able to follow defines, etc, has been removed (it was disabled anyway). And the new Tern-based support has also been hooked up to HTML files as well.