VS Code Extensions
Descriptor Updater

Descriptor Updater

by sza

При сохранении *.js файла обновляет поле ModifiedOnUtc в соседнем descriptor.json. При откате изменений восстанавливает descriptor.json из git.

Downloads

6

Rating

— (0)

Version

0.1.1

Last updated

May 07, 2026

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)\/"
  }
}

Related extensions