tomblachut / svelte-intellij

Svelte components in WebStorm and friends
MIT License
485 stars 38 forks source link

Props shared with / passed to slot, more than one letter inside braces not being recognized #122

Closed vatro closed 4 years ago

vatro commented 4 years ago

Hi,

this may be related to #105 🤔

Given this setup: see Svelte REPL

Prop passed from / shared by Parent.svelte is not being recognized on the slotted component. It compiles ok / works though.

svelte-intellij-shared-slot-prop

Thanks & keep up the good work! ✊

vatro commented 4 years ago

... but if you do something like this (see Svelte REPL)

then it's ok:

svelte-intellij-shared-slot-prop-works-a

but not with 'foo':

svelte-intellij-shared-slot-prop-foo-not-working

☝️ it seems that the problem occurs when the prop name inside the braces has more than one letter. 'a', 'b', 'c' is ok, but 'ab', 'abc', 'abcd' ... is not.

tomblachut commented 4 years ago

I've checked it in v0.13.0 and it looks like it's working.

image

Please let me know if issue is still occurring.