NomicFoundation / hardhat-vscode

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

VSCode intellisense not working for solidity files when using hardhat-foundry #571

Open tmigone opened 3 months ago

tmigone commented 3 months ago

Version of Hardhat

2.22.2

What happened?

IntelliSense in VSCode stops working when adding @nomicfoundation/hardhat-foundry plugin to a Hardhat project. Imported files wont have any definitions or types, suggestions, etc. For example the following screenshot showing import definitions not being found:

Screenshot 2024-03-27 at 10 39 49

The project will build fine though.

Minimal reproduction steps

The following repo contains a project and steps for a minimal reproduction: https://github.com/tmigone/hardhat-foundry-repro

Search terms

foundry, intellisense, vscode

kanej commented 3 months ago

Hey @tmigone, thanks for the reproduction repo, that makes things far easier to debug. We will investigate and get back.