We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0854cb commit b22d149Copy full SHA for b22d149
libsolidity/lsp/LanguageServer.cpp
@@ -207,8 +207,13 @@ vector<boost::filesystem::path> LanguageServer::allSolidityFilesFromProject() co
207
208
auto directoryIterator = fs::recursive_directory_iterator(m_fileRepository.basePath(), fs::symlink_option::recurse);
209
for (fs::directory_entry const& dirEntry: directoryIterator)
210
- if (dirEntry.path().extension() == ".sol")
211
- collectedPaths.push_back(dirEntry.path());
+ {
+ if (
212
+ dirEntry.status().type() == fs::file_type::regular_file &&
213
+ dirEntry.path().extension() == ".sol"
214
+ )
215
+ collectedPaths.push_back(dirEntry.path());
216
+ }
217
218
return collectedPaths;
219
}
0 commit comments