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

[CLOSED] Autocomplete doesn't work after using spread operator #10797

Open
core-ai-bot opened this issue Aug 30, 2021 · 6 comments
Open

[CLOSED] Autocomplete doesn't work after using spread operator #10797

core-ai-bot opened this issue Aug 30, 2021 · 6 comments

Comments

@core-ai-bot
Copy link
Member

Issue by EkaterinaMironova
Thursday Aug 11, 2016 at 07:00 GMT
Originally opened as adobe/brackets#12666


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 b0a363b71), russian language
OS version - Windows 10 build 10586

@core-ai-bot
Copy link
Member Author

Comment by dblachut
Tuesday Aug 23, 2016 at 16:17 GMT


I can confirm this issue, please fix asap. 👍

@core-ai-bot
Copy link
Member Author

Comment by dblachut
Tuesday Aug 23, 2016 at 23:23 GMT


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(?). :)

@core-ai-bot
Copy link
Member Author

Comment by ficristo
Wednesday Aug 24, 2016 at 07:47 GMT


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

@core-ai-bot
Copy link
Member Author

Comment by dblachut
Wednesday Aug 24, 2016 at 08:28 GMT


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

@core-ai-bot
Copy link
Member Author

Comment by EkaterinaMironova
Wednesday Aug 24, 2016 at 12:45 GMT


Cool! It works! Thanks a lot =)

@core-ai-bot
Copy link
Member Author

Comment by MarcelGerber
Friday Aug 26, 2016 at 13:37 GMT


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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant