Descriptor Updater
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
*.js file, looks for descriptor.json in the same directory.
- If the
.js file has uncommitted changes (git) → updates ModifiedOnUtc to current UTC unix timestamp.
- If the
.js file has no changes (reverted) → restores descriptor.json to its git state.
Expected descriptor.json format:
{
"Descriptor": {
"UId": "...",
"Name": "...",
"ModifiedOnUtc": "\/Date(1762427921000)\/"
}
}
| |