MCPcopy Index your code
hub / github.com/ember-tooling/ember-language-server

github.com/ember-tooling/ember-language-server @v2.30.9

Chat with this repo
repository ↗ · DeepWiki ↗ · release v2.30.9 ↗ · + Follow
758 symbols 2,085 edges 171 files 1 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Ember Language Server

Greenkeeper badge

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.

Features

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, arguments
  • Namespaces support (batman syntax)

  • Template linting

  • works only if ember-template-lint dependency added into project.
  • ember-template-lint (v2, v3, v4) integration, including documentation links and auto fixes
  • template linting inside .js and .ts files (with hbs literal)
  • experimental linting inside .gjs and .gts files (with <template> tag)

  • 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.

  • 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.

Editor Plugins

Addons available for install

Addon notes:

  • all addons could be added as dev-dependency for a project
  • dev-dependency installation allow us to have independent versions of addons for different projects
  • for global addon installation check LS settings in your editor (you have to specify path to addon root in LS config)
  • you could build your project-specific addon

Integration details

Server entrypoints

lib/start-server.js - nodejs

lib/start-worker-server.js - worker

Server options

new Server({fs, type})

fs - available options: * sync - LS should use nodejs.fs logic * async - LS should use client's fs provider

type - available options: * node - supported addons & require logic * worker - addons and require logic not supported


Debugging


Changelog


License

MIT

Extension points exported contracts — how you extend this code

DocumentSymbolProvider (Interface)
(no doc) [4 implementers]
src/symbols/document-symbol-provider.ts
AddonAPI (Interface)
(no doc) [1 implementers]
src/utils/addon-api.ts
ServerBucket (Interface)
(no doc)
test/test_helpers/public-integration-helpers.ts
TemplateLinterError (Interface)
(no doc)
src/template-linter.ts
Executors (Interface)
(no doc)
src/project.ts
Config (Interface)
(no doc)
src/types.ts
IServerConfig (Interface)
(no doc)
src/server.ts
INodeSelectionInfo (Interface)
(no doc)
src/builtin-addons/core/code-actions/base.ts

Core symbols most depended-on inside this repo

m
called by 152
test/utils/path-matcher-test.ts
getResult
called by 125
test/test_helpers/integration-helpers.ts
map
called by 97
src/utils/yield-context-extractor.ts
logDebugInfo
called by 51
src/utils/logger.ts
logInfo
called by 38
src/utils/logger.ts
toPosition
called by 37
src/estree-utils.ts
newPosition
called by 28
src/estree-utils.ts
logError
called by 25
src/utils/logger.ts

Shape

Method 311
Function 309
Class 106
Interface 31
Enum 1

Languages

TypeScript100%

Modules by API surface

src/utils/layout-helpers.ts50 symbols
src/utils/ast-helpers.ts43 symbols
src/utils/glimmer-script.ts39 symbols
src/glimmer-utils.ts35 symbols
test/test_helpers/integration-helpers.ts33 symbols
src/server.ts32 symbols
src/builtin-addons/core/template-definition-provider.ts31 symbols
src/utils/yield-context-extractor.ts28 symbols
src/utils/addon-api.ts26 symbols
src/builtin-addons/core/script-definition-provider.ts26 symbols
src/template-linter.ts23 symbols
src/fs-provider.ts22 symbols

For agents

$ claude mcp add ember-language-server \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact