Auto-completion for the lib/* folder is not working when integrating Foundry with Hardhat, following the instructions from this link.
Changing the source directory name from contracts to src resolved the issue, which was confusing. It would be preferable if any directory name could be used without affecting auto-completion.
Steps to Reproduce
Initialize a new Hardhat project:
npx hardhat init
Install the Foundry plugin for Hardhat:
npm i -D @nomicfoundation/hardhat-foundry
Edit the hardhat.config.ts file to include the import statement:
import "@nomicfoundation/hardhat-foundry";
Attempt to use auto-completion in Lock.sol for libraries under the lib/ directory, which does not appear.
Problem
Auto-completion for the
lib/*
folder is not working when integrating Foundry with Hardhat, following the instructions from this link.Changing the source directory name from
contracts
tosrc
resolved the issue, which was confusing. It would be preferable if any directory name could be used without affecting auto-completion.Steps to Reproduce
hardhat.config.ts
file to include the import statement:Lock.sol
for libraries under thelib/
directory, which does not appear.