NomicFoundation / hardhat-vscode

Solidity and Hardhat support for Visual Studio Code
https://hardhat.org
MIT License
174 stars 43 forks source link

Add solidity-coverage support #388

Open kanej opened 1 year ago

kanej commented 1 year ago

Investigate the vscode apis for displaying line by line coverage inline and use them to support solidity-coverage.

Solidity coverage is a hardhat extension. We should determine from config whether it is enabled for a project.

I am unsure when coverage calculation should be generated. Perhaps we monitor for changes in the output file? Or add a run coverage task if it is detected in hh config and then process its output.

kanej commented 1 year ago

An example of and extension that provides coverage support inline is: https://marketplace.visualstudio.com/items?itemName=ryanluker.vscode-coverage-gutters