Skip to content

Commit

Permalink
WIP: Explicitly adds {BasePath}/node_modules to include search paths,…
Browse files Browse the repository at this point in the history
… such that e.g. Hardhat includes can be properly resolved.
  • Loading branch information
christianparpart committed May 16, 2022
1 parent 3f425f3 commit 238692d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libsolidity/lsp/FileRepository.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ using solidity::util::Result;

FileRepository::FileRepository(boost::filesystem::path _basePath): m_basePath(std::move(_basePath))
{
m_includePaths.emplace_back(m_basePath / "node_modules");
}

string FileRepository::sourceUnitNameToUri(string const& _sourceUnitName) const
Expand Down

0 comments on commit 238692d

Please sign in to comment.