def make_completion(path_part_dict, key, dot_paths, project_name, constructor):
	completion = path_part_dict["path_part"]
	if path_part_dict["is_cfc"] and constructor:
		full_key = key + ("." if len(key) > 0 else "") + completion
		constructor_completion = model_index.get_completions_by_file_path(project_name, dot_paths[full_key.lower()]["file_path"])["constructor"]
		if constructor_completion:
			completion = completion + constructor_completion.content[4:]
		else:
			completion = completion + "()"
	if not path_part_dict["is_cfc"]:
		completion += "."
	return path_part_dict["path_part"] + "\t" + ("cfc" if path_part_dict["is_cfc"] else "cfc path"), completion
dataset/ETHPy150Open jcberquist/sublimetext-cfml/src/dotpaths/completions.py/make_completion/original