Ember Go To
This is a WIP.
Makes 'Go to Definition' work for ember applications with in-repo addons and for resolving modules from the node_modules directory. Relies on namespaced, absolute import paths. Also provides a "Related Files" feature which displays related files based on the current file, which is available via a command in the command palette.
Coming soon: auto creation of jsconfig.json based on project for more integrated experience
If you want to resolve modules in unconventional locations, you need to
specify where this extension should search for them. By default it will try
to resolve modules from lib and node_modules. The config should
provide additional sources under the config key
Example config for non-conventional directories:
If modules are imported using the application namespace, you must provide the name of the application via the config "ember-goto.appNamespace". This is the same as the name key found in the package.json for your top level ember app:
If your project has addons with names different from the directory name on the file system, that can be configured with "ember-goto.addonNameAliases":
If your ember app is nested in a subdirectory of your overall project. You must provide the absolute path to the ember app location:
Not published in the marketplace yet, but it can be easily installed by
downloading the .vsix file from this repo and using the
First, you need to make sure the
Step 1: Press
After installation you can reload or start a new instance of vscode. To confirm the plugin is loaded, you can right click in any editor and there should be a new option, "Related Files", and a new command in the command palette of the same name.