The Ember Language Server (ELS) implements the Language Server Protocol for Ember.js projects. ELS enables editors to provide features like auto complete, goto definition and diagnostics. To get these features, you have to install the plugin for your editor.
All features currently only work in Ember CLI application that use the default classic structure, and are a rough first draft with a lot of room for improvements. Pods and addons are not supported yet.
-
Autocompletion
*.{js/ts}
: services, models, routes, transforms*.hbs
: components, route names, helpers, modifiers, local paths- GlimmerNative components autocompletion support
- Namespaces support (batman syntax)
-
Definition providers for (enable features like "Go To Definition" or "Peek Definition"):
- Components (in Templates)
- Helpers (in Templates)
- Modifiers (in Templates)
- Models
- Transforms
- Component imports (from addons)
- Namespace components (batman syntax)
-
Route autocompletion in
link-to
and<LinkTo>
components. -
Diagnostics for
ember-template-lint
(if it is included in a project) -
ember-template-lint
template fixes support (if exists). -
Workspaces support
-
Supports Ignoring of LS initialization on unneeded projects by using
ignoredProjects
config option