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

Missing completions for initialiser list #34735

DanTup opened this Issue Oct 9, 2018 · 0 comments


None yet
2 participants

DanTup commented Oct 9, 2018

Given this code:

String _lots(String a) => a * 50;

class Field {
  final String comment;
  Field(String comment) : comment = _lots(comment);

There are no errors or warnings, but if you delete the ots from _lots and invoke completion after the _l there are no entries in the results:

==> {"id":"15515","method":"completion.getSuggestions","params":{"file":"/Users/dantup/Dev/parser/lib/test.dart","offset":111}}
<== {"id":"15515","result":{"id":"1346"}}
<== {"event":"completion.results","params":{"id":"1346","replacementOffset":109,"replacementLength":2,"results":[],"isLast":true}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment