of-human-bondage/react-proptypes-intellisense

I can't make it work...

Closed this issue · 5 comments

I guess I'm not competent enough to understand my mistake, but based on the readme I cannot get any further.
I have the project in a folder :
capture d ecran 2018-07-19 a 16 48 30

with the jsconfig.json at the root of that folder :
capture d ecran 2018-07-19 a 16 48 40

And then I have a component with lots of proptypes :
capture d ecran 2018-07-19 a 16 51 40

And I import this last one into another :
capture d ecran 2018-07-19 a 16 52 18

But then when I try to use it like the example, it doesn't suggest anything. I dont know what to do :
capture d ecran 2018-07-19 a 16 54 05
capture d ecran 2018-07-19 a 16 54 17

Hi!
Try to start typing props or press Ctrl + Space(windows) / Control + Space(macOS)

@kv4sha Thanks for your help. I've got it now !!!

Wo I've found out some things that might be useful for others : I've found the useful blue suggestions for the first prop I started typing or use space+ ctrl :
capture d ecran 2018-07-19 a 17 24 30

But then for the next ones it doesn't do that anymore wether I start typing or press space+ctrl :
capture d ecran 2018-07-19 a 17 25 03
capture d ecran 2018-07-19 a 17 25 21

And actually, I just had to enter something in the other props for the next suggestions to appear :
capture d ecran 2018-07-19 a 17 30 48

Thanks a lot ❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️

We use babel
We have this problem cuz prop={} is incorrect js for babel

And would it be impossible to, without pressing ctrl+space/cmd+space on windows, autosuggest props ? It would save time for each prop !

We can't do this cuz we use native vscode behavior for this (CompletionItemProvider)