In VS Code's March 2024 (version 1.88) update they announced a new [test coverage API](https://code.visualstudio.com/api/extension-guides/testing#test-coverage). Should look to use this API if possible.