Tool · VS Code extension
Edit Tracker
A VS Code extension that keeps a list of every file you change while you work, ready to copy when it's time to upload them to the live site.
- Written by
- Rob Wood
- Version
- 0.1.4
- Licence
- MIT
- Runs on
- VS Code 1.136 or later
A VS Code extension, shared as a .vsix file. The code is in a private repository, so
it's available on request.
The problem
Which files did I change?
I built it for client sites that weren't kept in source control. With no Git, there's nothing to tell you which files you've changed, and after a day's work it was almost impossible to remember them all when choosing the files to upload to the live site. Edit Tracker remembers for you.
Features
What it does
-
Only real changes
Lists a file when its content actually changes. Saving without changing anything doesn't add it.
-
Changes from other tools too
Picks up files that build tools, formatters or other programs create or rewrite, not just saves in the editor.
-
A folder tree in the Explorer
The Edited Files panel groups files by folder. Select one to open it, or right-click to reveal or remove it.
-
Copy the list
One click copies every path, sorted, as plain lines or a Markdown list.
-
Ignore what you don't need
Leave out files and folders with glob patterns, or right-click to ignore them. .git and node_modules are ignored by default.
-
Remembered per workspace
The list survives restarts until you clear it, and you can pause and resume tracking. The status bar shows the count.
How to use it
3 steps
-
Step 1: Clear the list when you start a new task.
-
Step 2: Work as usual. Changed and new files appear in the Edited Files panel as you go.
-
Step 3: Click the copy icon and paste the list wherever you need it, such as a ticket or your list of files to upload.
Under the hood
How it's built
A TypeScript VS Code extension in about 420 lines, with one runtime dependency (minimatch) for the ignore patterns. It's shared as a .vsix file rather than through the Marketplace. This is version 0.1.4.
Fingerprints, not timestamps
Every file gets a SHA-256 fingerprint of its content. A save or an outside rewrite only adds a file to the list when the fingerprint changes, so saving without editing, or a tool rewriting identical content, doesn't clutter the report.
Watching the whole workspace
VS Code's save events cover the editor, and a file-system watcher catches files created or changed by anything else. Both feed one queue, so updates are handled one at a time and never overwrite each other.
Stored per workspace
The list and the paused or running state live in VS Code's workspace storage, so each project keeps its own list across restarts.
Packaged with its dependency
The packaging script bundles minimatch into the .vsix. Packaging without dependencies stops the extension from starting once installed, so the script makes that mistake impossible.
- VS Code extension
- TypeScript
- Developer tooling
- Deployment
Want a copy of Edit Tracker?
Get in touch