Add support for git branches on remote projects (#19755)
Release Notes: - Fixed a bug where the branch switcher could not be used remotely.
This commit is contained in:
parent
5506669b06
commit
c69da2df70
25 changed files with 993 additions and 127 deletions
|
@ -61,6 +61,7 @@ pub trait Settings: 'static + Send + Sync {
|
|||
anyhow::anyhow!("missing default")
|
||||
}
|
||||
|
||||
#[track_caller]
|
||||
fn register(cx: &mut AppContext)
|
||||
where
|
||||
Self: Sized,
|
||||
|
@ -271,6 +272,7 @@ impl SettingsStore {
|
|||
pub fn register_setting<T: Settings>(&mut self, cx: &mut AppContext) {
|
||||
let setting_type_id = TypeId::of::<T>();
|
||||
let entry = self.setting_values.entry(setting_type_id);
|
||||
|
||||
if matches!(entry, hash_map::Entry::Occupied(_)) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue