arnoudkooi / sn-scriptsync

Use sn-scriptsync in combination with SN Utils to be able to code in VS Code, including all benefits of a full fledged code editor
https://marketplace.visualstudio.com/items?itemName=arnoudkooicom.sn-scriptsync
Other
43 stars 28 forks source link

Makes renaming synced files possible #90

Closed Blenderpics closed 1 year ago

Blenderpics commented 1 year ago

Fixes https://github.com/arnoudkooi/sn-scriptsync/issues/85
Slimmed down version of https://github.com/arnoudkooi/sn-scriptsync/pull/88 (No prompt.)

arnoudkooi commented 1 year ago

The idea here is to rename the file and update the _map.json muanual? Can you automate the _map.json update using the vscode.workspace.onDidRenameFiles event handler?

Blenderpics commented 1 year ago

The idea here is to rename the file and update the _map.json muanual?

Yes, although not very user friendly, it would be sufficient for me to be able to do so.

Can you automate the _map.json update using the vscode.workspace.onDidRenameFiles event handler?

Sure, i can give it a try.

Blenderpics commented 1 year ago

@arnoudkooi event handler is implemented.

arnoudkooi commented 1 year ago

Looks good, I probably would not have added those oneliner functions, however, seems ok. I'll merge and further test/check tonight.