Skip to content

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

Description

@lifeart

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)

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions