Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-import component for templates (diagnostics fix) #405

Open
lifeart opened this issue Aug 30, 2024 · 0 comments
Open

Auto-import component for templates (diagnostics fix) #405

lifeart opened this issue Aug 30, 2024 · 0 comments

Comments

@lifeart
Copy link
Contributor

lifeart commented Aug 30, 2024

https://discord.com/channels/480462759797063690/487336430742274058/1278762113351028777

image

Notes, at the moment we already have related behaviour for components autocomplete:

https://github.com/lifeart/ember-language-server/blob/component-context-info-origin/src/completion-provider/glimmer-script-completion-provider.ts#L155

We may re-use it with diagnostics messages to provide this kind of fixes.


Logic:

If it's gts/gjs file, and we unable to find scoped name for CamelCased component-like template item, we should emit warning diagnostics message with possible fix (import file if exists in registry)

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

No branches or pull requests

1 participant