def is_enabled(self):
try:
build_folder = self.window.project_data()["settings"]["cmake"]["build_folder"]
build_folder = sublime.expand_variables(build_folder, self.window.extract_variables())
return os.path.exists(os.path.join(build_folder, "CMakeCache.txt"))
except Exception as e:
return False
return True
评论列表
文章目录