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

Autocomplete on lightning component using expression {!v.xxx} {!c.xxx} #170

Open
Shababsoft opened this issue Feb 6, 2018 · 7 comments
Open
Assignees

Comments

@Shababsoft
Copy link

Please can you also provide autocomplete on the lightning component (.cmp) as well for the following things, which will improve the development performance.

  • {!v.paramName}
  • {!c.controllerMethod}
  • {!$Label.c.CUSTOM_LABEL} (autocomplete works on do after $Label ($Label.XXX) but not for dot after $Label.c ($Label.c.XXXX)
@lushang
Copy link
Collaborator

lushang commented Feb 6, 2018

Planed doing this.

@xjsender
Copy link
Owner

xjsender commented Feb 6, 2018

@Shababsoft , Custom Label completion and attribute completion are working like what you said.

image
image

@xjsender
Copy link
Owner

xjsender commented Feb 6, 2018

@Shababsoft , controller methods and helper methods completion is planning to deliver.

@Shababsoft
Copy link
Author

@xjsender they work in controller and helper JavaScript files but not in HTML file (.cmp). Label completion work on $Label. but not if I put dot after "c" ($Label.c.), also we need to use $.get function to get a label in JS files. Please can you also double check that auto completion works in this scenario?
$A.get ("$Label.c.xxxx");

@xjsender
Copy link
Owner

xjsender commented Feb 6, 2018

@Shababsoft , I think, every custom label in different managed package has it's namespace, it is difficult to identify that, I will try to use more reasonable way to match this.

label completion in html is not working now, it is bug, I think.

@xjsender
Copy link
Owner

xjsender commented Feb 7, 2018

@Shababsoft , actually, custom label completion works in cmp file, however, before it works, you must ensure you have already reloaded the project the custom label cache by Metadata > Reload Project Cache in the main menu.

image

image

image

@Shababsoft
Copy link
Author

@xjsender I know custom label autocompete is working, I was only suggesting that completion also work when enter "." After "$Label.c". The autocompete does not work for attributes {!v.xxz} and controller {!c.xxx} in CMP file, I know you are aware of these things.

Thanks for working on this plugin.

lushang added a commit that referenced this issue Feb 7, 2018
Base enhancement for issue #170, add support to attribute values
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

3 participants