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, argumentsTemplate linting
ember-template-lint
dependency added into project.v2
, v3
, v4
) integration, including documentation links and auto fixes.js
and .ts
files (with hbs
literal).gjs
and .gts
files (with <template>
tag)Definition providers for (enable features like "Go To Definition" or "Peek Definition"):
Route autocompletion in link-to
and <LinkTo>
components.
Outlet jumping
Workspaces support
Supports Ignoring of LS initialization on unneeded projects by using ignoredProjects
config option, if you need "exclude except" functionality, specify project name as !my-project
.
lib/start-server.js
- nodejs
lib/start-worker-server.js
- worker
new Server({fs, type})
fs
- available options:
sync
- LS should use nodejs.fs logicasync
- LS should use client's fs providertype
- available options:
node
- supported addons & require logicworker
- addons and require logic not supported