Coverage Gutters: Display Coverage with Watch off much slower than in previous versions
See original GitHub issueDescribe the bug In my workspace in which “Coverage Gutters: Watch” is off, 9 editor tabs are open and 69 files have coverage data execution of the “Coverage Gutters: Display Coverage” command takes about 72 seconds before the Gutters are displayed.
In another of my workspaces with 2 open editor tabs and 19 covered files, it takes 11 seconds for Coverage Gutters to display.
Until recently this command took at most 1 second to run in the same workspaces with similar numbers of open editor tabs and files with coverage data in coverage/lcov.info
.
To Reproduce Steps to reproduce the behaviour:
- Run Mocha tests for a JavaScript project with unit test coverage measured by
nyc
viaistanbul
; - Generate
coverage/lcov.info
fromnyc
-captured coverage data vianyc
; - Start VS Code;
- File | Open…, navigate to the JavaScript project folder, Open;
- run Coverage Gutters: Display Coverage;
- wait for 0.5 to 1.1 seconds per covered file before the Coverage Gutters are Displayed.
Expected behaviour Coverage Gutters display in no more than 1 second.
Screenshots Log from workspace 1:
[1540918289897][coverageservice]: LOADING
[1540918305856][coverageservice]: Loading 9 file(s)
[1540918362420][coverageservice]: Caching 69 coverage(s)
[1540918362420][coverageservice]: READY
[1540918362420][coverageservice]: RENDERING
[1540918362420][renderer][section file path]: /Users/USER/PATH/FILE.js
[1540918362421][coverageservice]: READY
Log from workspace 2:
[1540918616906][coverageservice]: LOADING
[1540918624598][coverageservice]: Loading 2 file(s)
[1540918627246][coverageservice]: Caching 19 coverage(s)
[1540918627246][coverageservice]: READY
[1540918627246][coverageservice]: RENDERING
[1540918627246][renderer][section file path]: /Users/USER/OTHERPATH/OTHERFILE.js
[1540918627247][coverageservice]: READY
Desktop (please complete the following information):
- OS: macOS High Sierra 10.13.6
- Extension Version 2.2.1
- VSCode Version 1.28.2
Additional context None yet.
Issue Analytics
- State:
- Created 5 years ago
- Comments:13 (5 by maintainers)
@jledentu @markf-hubdoc-com thanks a bunch for getting back to me with the good news. I will go ahead with making an official 2.2.2 release here in the near future when I find some free time.
Going to close this issue as it was related to the glob file path ignore issue and a fix will go out with the official 2.2.2 release shortly.
@mtycholaz and others with large lcov files that still have issues can track https://github.com/ryanluker/vscode-coverage-gutters/issues/185 instead.