Brackets: Autocomplete doesn't work after using spread operator

Created on 11 Aug 2016  路  6Comments  路  Source: adobe/brackets

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

F Code Hints

Most helpful comment

Could you try this PR https://github.com/adobe/brackets/pull/11569 to see if it fixes this issue?

All 6 comments

I can confirm this issue, please fix asap. :+1:

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

Could you try this PR https://github.com/adobe/brackets/pull/11569 to see if it fixes this issue?

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

Cool! It works! Thanks a lot =)

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ankushdas9 picture ankushdas9  路  3Comments

brendonmm picture brendonmm  路  4Comments

zaggino picture zaggino  路  4Comments

ghost picture ghost  路  3Comments

naphipps picture naphipps  路  4Comments