To run unused finder tool within a vscode extension some changes were needed:
To run tool on file save, a way to preserve the metadata of source files done during file walk was needed
An in-memory representation of files was created as a property of UnusedFinder struct.
Every-time we need to run the tool on an existing file, instead of reading all files from disk, we just read from disk the last written file and the rest is used from in-memory metadata from the original file-walk or from previous iteration.
To run unused finder tool within a vscode extension some changes were needed:
UnusedFinder
struct.