google / vim-coverage

Apache License 2.0
101 stars 22 forks source link

Add "show if available" variant to be used in autocmds #16

Open dbarnett opened 7 years ago

dbarnett commented 7 years ago

We should document an autocmd a user can define to show coverage on certain paths as soon as they're opened, without seeing an error or warning about missing coverage (particularly in the async case). Currently there's no obvious way to get that behavior reliably.

The coverage plugin will need to document some clear contract for what .GetCoverage should throw/return and what .GetCoverageAsync should do to signal coverage was not found, and use that to surface error information to the user consistently.