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 fa0bf8a commit 77dad57Copy full SHA for 77dad57
config.cpp
@@ -137,6 +137,9 @@ static std::filesystem::path normalizePath(const std::filesystem::path path)
137
138
std::string Config::matchFilenameFromCompileCommand()
139
{
140
+ if (m_projectFilePath.empty() || m_projectFilePath.extension() != ".json")
141
+ return "";
142
+
143
// Read compile_commands file
144
std::ifstream ifs(m_projectFilePath);
145
if (ifs.fail())
0 commit comments