

I suppose it really comes down to preference and familiarity, but I can't imagine removing the entire source tree and then retrieving being the most efficient route.
#Jetbrains webstorm copy relative path code#
that I’ve placed the code in a wrong place by mistake), but now I’ll probably stop blaming myself in such cases :) I saw a similar behavior previously 1 or 2 times with additional js files being places incorrectly (repo showed a diff for files which definitely were not changed) but I thought that was my mistake (e.g. In this case it was only the lwc folder but it does not matter I think. Then I when a new piece of work is assigned (to me), I retrieve the whole org to sync the local codebase with it and continue working from that spot. This simulates the case where you have an older copy of the org, and someone else has created a new component at some point (so I don’t have the component locally yet).
#Jetbrains webstorm copy relative path Pc#
Yes, when I retrieve the component, it does not exist locally on my PC yet. I already had that component locally but for the sake of testing I deleted the whole component folder and retrieved the whole lwc folder assuming that the new component would reappear. UPDATE: if I use ANT, it retrieves the additional js files nicely together with the component. The component still functions correctly, as if the file was there, so I’m assuming that something is wrong on the sync/retrieval side. Component I’ve deleted re-appears, but it lacks the js file (in my case it’s labels.js). On screenshot 3, I retrieve the whole org.

On screenshot 2, I delete the component folder physically (assuming that I’m the new dev has not seen it yet)ģ. On screenshot 1, here’s the older component that was created a while ago and does have an additional js file (labels.js).Ģ. The problem is that when you have an LWC component with additional js files, they are not retrieved (or if retrieved, they are not created as actual files on the component folder), even if I’m sure they exist on that component.ġ. I don’t know when this started to happen.
