This VSCode extension searches markdown headers for trailing text that includes (Target: NNN)
where NNN
is a number (no commas or periods). It than calculates the text between two headers and, if the previous header has a target, displays the completion percentage.
This is an adaptation of the word count extension example.
By Christopher Witulski. The source code is available on GitHub.