Skip to content

Commit d064d9f

Browse files
committed
fix: Hang when presets exist #319
1 parent e8e5baf commit d064d9f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/cmake-tools/config.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ function Config:get_codemodel_targets()
215215
return Result:new(Types.SUCCESS, config["targets"], "find it")
216216
end
217217
end
218-
return Result:new(Types.CANNOT_FIND_CODEMODEL_FILE, nil, "Unable to find codemodel file")
218+
return Result:new(Types.SUCCESS, codemodel_json["configurations"][1]["targets"], "find it") -- Return the first else
219219
end
220220

221221
function Config:get_code_model_target_info(codemodel_target)

0 commit comments

Comments
 (0)