Skip to content

Support ember-decorators package's import statements #54

@axyxnz

Description

@axyxnz

Hey,

As Ember marketing team is generating buzz around Ember Octane Edition, many users are trying out Ember's new features. It would be awesome to allow users autocomplete ember-decorators's import statements to make user's experience better.

Ember Decorators API Documentation:
https://ember-decorators.github.io/ember-decorators/

Module Import File
component import { ... } from '@ember-decorators/component' import-ember-decorators-component.cson
controller import { ... } from '@ember-decorators/controller' import-ember-decorators-controller.cson
data import { ... } from '@ember-decorators/data' import-ember-decorators-data.cson
object import { ... } from '@ember-decorators/object' import-ember-decorators-object.cson
object/computed import { ... } from '@ember-decorators/object/computed' import-ember-decorators-object/-omputed.cson
service import { ... } from '@ember-decorators/service' import-ember-decorators-service.cson
  • All ember-decorators import statements will have imdec prefix.
  • All ember-decorators import statements will be distinguish by #EDAE49 color. See Preview

i.e.

snippets/import-ember-decorators-object.cson

'Ember.object.computed':
  'prefix': 'imdeccomputed',
  'leftLabelHTML': '<span style="color:#EDAE49">Ember Decorators module</span>',
  'body': "import { className } from '@ember-decorators/component;'"

If you are okay with supporting ember-decorators's import statements in this plugin, I can send you PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions