Save project-level extension configuration. Args: config: Configuration dictionary to save
(self, config: Dict[str, Any])
| 2980 | } |
| 2981 | |
| 2982 | def save_project_config(self, config: Dict[str, Any]): |
| 2983 | """Save project-level extension configuration. |
| 2984 | |
| 2985 | Args: |
| 2986 | config: Configuration dictionary to save |
| 2987 | """ |
| 2988 | self.config_file.parent.mkdir(parents=True, exist_ok=True) |
| 2989 | self.config_file.write_text( |
| 2990 | yaml.dump( |
| 2991 | config, default_flow_style=False, sort_keys=False, allow_unicode=True |
| 2992 | ), |
| 2993 | encoding="utf-8", |
| 2994 | ) |
| 2995 | |
| 2996 | def register_extension(self, extension_id: str): |
| 2997 | """Add extension to the installed list in project config. |
no outgoing calls