Fixed #8061 (Problems with handling of --project argument)
This commit is contained in:
parent
173c737a5c
commit
c7e5176284
|
@ -172,7 +172,7 @@ ImportProject::Type ImportProject::import(const std::string &filename)
|
|||
std::ifstream fin(filename);
|
||||
if (!fin.is_open())
|
||||
return MISSING;
|
||||
if (endsWith(filename, "compile_commands.json", 21)) {
|
||||
if (endsWith(filename, ".json", 5)) {
|
||||
importCompileCommands(fin);
|
||||
return COMPILE_DB;
|
||||
} else if (endsWith(filename, ".sln", 4)) {
|
||||
|
|
Loading…
Reference in New Issue