Skip to content

Add support for the ember-language-server#3

Draft
lougreenwood wants to merge 13 commits intojylamont:mainfrom
lougreenwood:ember-language-server
Draft

Add support for the ember-language-server#3
lougreenwood wants to merge 13 commits intojylamont:mainfrom
lougreenwood:ember-language-server

Conversation

@lougreenwood
Copy link

@lougreenwood lougreenwood commented Aug 23, 2024

WIP PR adding support for the ember-language-server.

In it's current state it adds linting to .hbs files. I don't get any go to definition, hover support or suggestions in templates yet.

TODO:

  • Add support for passing config to ELS
  • Get the addons working
  • Add slash commands for ember-fast-cli
  • Cleanup & test

src/lib.rs Outdated
("els-addon-glint", "0.6.4"),
("els-a11y-addon", "1.0.4"),
("ember-fast-cli", "1.3.1"),
("els-intl-addon", "1.0.3"),
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ELS has builtin els-intl-addon, so, we could skip this one

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I was meaning to look into which addons to include by default & whether to version them or always pull the latest ones!

[
(element_node (element_node_start))
(block_statement)
(element_node
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

auto-formatting

; We'll also use this highlighting for named blocks (which start with `:`)
((tag_name) @tag
(#match? @tag "^(:)?[a-z]"))
(#match? @tag "^:?[%l]"))
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

copied over from the latest tree-sitter-glimmer

@vfuto
Copy link

vfuto commented Sep 5, 2024

let me know if you need help 🙏

@jylamont
Copy link
Owner

Thanks for working on this. Will be happy to test and merge when its ready @lougreenwood.

// TODO: ONLY INCLUDE THE GLINT ADDON IF WE CAN DETECT THAT THE PROJECT IS A GLINT ONE
// ... OR SOMETHING LIKE THAT
("els-addon-glint", "0.6.4"),
("els-a11y-addon", "1.0.4"),
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

els-a11y-addon is embedded to ember-language-server, we could skip it.

@billybonks
Copy link

billybonks commented Aug 13, 2025

@lougreenwood are you still working on this? or should someone else take over. Feel like it my be worth it to split this pr into different ones.

Formatting
Tree Sitter updates
Langauge server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants