NomicFoundation / hardhat-vscode

Solidity and Hardhat support for Visual Studio Code

Home Page:https://hardhat.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Change onCodeAction telemetry reporting so zero diagnostics is success

kanej opened this issue · comments

Our quickfixes are currently based on the errors/warnings that solc uses. We read the attached diagnostics for the current cursor position then generate quickfixes from those. Currently if there are no diagnostics we generate a precondition_failed in our telemetry, this should be an ok instead, as having no diagnostics just means the answer to how many quickfixes are available is 0.