VS Code extension that automatically updates ModifiedOnUtc in descriptor.json when a nearby .js file is saved, and reverts it when changes are undone.
How it works
- On save of any
*.jsfile, looks fordescriptor.jsonin the same directory. - If the
.jsfile has uncommitted changes (git) → updatesModifiedOnUtcto current UTC unix timestamp. - If the
.jsfile has no changes (reverted) → restoresdescriptor.jsonto its git state.
Expected descriptor.json format:
{
"Descriptor": {
"UId": "...",
"Name": "...",
"ModifiedOnUtc": "\/Date(1762427921000)\/"
}
}