flow/flow-for-vscode

Autocomplete of primitives when defining types keeps PascalCasing

Brianzchen opened this issue · 1 comments

Whenever I want to type a primitive type, vscode will autocomplete to PascalCase which is really annoying
eg: string -> String, number -> Number, boolean -> Boolean.

Here's an example if I'm creating a new Props type
Screen Shot 2020-05-26 at 11 39 10 am

When I type , because I want to add another type or because I like trailing commas, it autocompletes and changes to
Screen Shot 2020-05-26 at 11 39 17 am

I believe this is caused by
Screen Shot 2020-05-26 at 11 45 43 am

But I don't want to turn this off otherwise I lose some import path suggestions and will ruin my dev experience.
Is there any fix for this or can number/other primitives be added to flow as one of the auto complete suggestions so that vscode auto completes to the lowercase suggestion?

mroch commented

thanks for the report, this is indeed super confusing.

primitive type suggestions are added in facebook/flow@d45ca19 and will be in flow 0.161.

if there are other features making you want to leave JavaScript > Suggest enabled, please file issues on the facebook/flow repo!