diff --git a/src/plugins/nim/project/nimbuildsystem.cpp b/src/plugins/nim/project/nimbuildsystem.cpp index 023d253df71..e437ab73545 100644 --- a/src/plugins/nim/project/nimbuildsystem.cpp +++ b/src/plugins/nim/project/nimbuildsystem.cpp @@ -160,6 +160,8 @@ void NimBuildSystem::updateProject() QSet directories; for (FileNode *node : m_scanner.release()) { + if (!node->path().endsWith(".nim")) + node->setEnabled(false); // Disable files that do not end in .nim directories.insert(node->directory()); newRoot->addNestedNode(std::unique_ptr(node)); }