Start work on option to control sourcing strategies

This commit is contained in:
Kovid Goyal
2022-04-17 15:30:57 +05:30
parent f9cad2c4ea
commit 0ee5712e00
6 changed files with 48 additions and 14 deletions

View File

@@ -746,6 +746,10 @@ def tab_bar_margin_height(x: str) -> TabBarMarginHeight:
return TabBarMarginHeight(next(ans), next(ans))
def clone_source_strategies(x: str) -> FrozenSet[str]:
return frozenset({'venv', 'conda', 'path', 'env_var'} & set(x.lower().split(',')))
def clear_all_mouse_actions(val: str, dict_with_parse_results: Optional[Dict[str, Any]] = None) -> bool:
ans = to_bool(val)
if ans and dict_with_parse_results is not None: