CatStarwind / FileSync

Visual Studio Code Extension to keep external folders synced with a work space.
https://marketplace.visualstudio.com/items?itemName=CatStarwind.filesync
GNU Affero General Public License v3.0
9 stars 6 forks source link

No mapping availible #3

Open Bootscreen opened 4 years ago

Bootscreen commented 4 years ago

Hello,

when i try to enable the file sync i only get the message: "no mapping availible"

But i have the mapping in my settings.json and its correct, because when i go over the filemapping setting i get the description.

"filesync.mappings": [ { "source": "C:\\Users\\bootscreen\\source\\repos\\TelnetTest", "destination": "C:\\Users\\bootscreen\\source\\repos\\TelnetTest2"} ]

CatStarwind commented 4 years ago

Can you double check that you have C:\Users\bootscreen\source\repos\TelnetTest opened as a Folder or Workspace? That error comes from not being able to match the root of the current workspace/folder with any of the source paths. You can see the line here.

pbodnar commented 7 months ago

@CatStarwind, if I haven't overlooked something, the linked line causes the issue reported - because it expects that source is exactly equal to the path of a workspace folder, instead of checking just the beginning of the path?

pbodnar commented 7 months ago

For anyone interested, I have prepared a patch for subfolders support (see above). I guess it is futile to prepare a PR here.

I'm switching to IDE-independent syncing solution (like over here) anyway now...