Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Autocomplete doesn't work after using spread operator #12666

Closed
EkaterinaMironova opened this issue Aug 11, 2016 · 6 comments
Closed

Autocomplete doesn't work after using spread operator #12666

EkaterinaMironova opened this issue Aug 11, 2016 · 6 comments

Comments

@EkaterinaMironova
Copy link

EkaterinaMironova commented Aug 11, 2016

If I use spread operator in variable declaration, Autocomplete doesn't work.

For example:
let model = new Model(...args);

In function declaration it's ok.
function createModel(Model, ...args) {};

What's wrong? Thanks a lot!

Brackets version - sprint 7 build 1.7.0-16898 (release b0a363b), russian language
OS version - Windows 10 build 10586

@EkaterinaMironova EkaterinaMironova changed the title Autocompile don't work after using spread operator Autocomplete doesn't work after using spread operator Aug 11, 2016
@dblachut
Copy link

I can confirm this issue, please fix asap. 👍

@dblachut
Copy link

Looks like tern does not have support for "SpreadElement". After adding stub implementation in https://github.com/ternjs/tern/blob/a53d2ee43d091a44fb4291779a786ed3fc010ba3/lib/infer.js#L1373 it works.

I will try to investigate it further, or event fix it, tomorrow. Unless someone will do it first(?). :)

@ficristo
Copy link
Collaborator

Could you try this PR #11569 to see if it fixes this issue?

@dblachut
Copy link

Looks like it did, at least for me. I can use it as a temporary solution. Thanks.

@EkaterinaMironova
Copy link
Author

Cool! It works! Thanks a lot =)

@marcelgerber
Copy link
Contributor

This is fixed with the merge of #11569 and will come to you in Release 1.8.
Please let us know if it still doesn't work for you when the Release ships.

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

No branches or pull requests

5 participants