Merge 29a458e9d8
into 0e575b2809
This commit is contained in:
commit
bb32cdb12f
2 changed files with 33 additions and 0 deletions
|
@ -426,6 +426,16 @@ impl GitSettings {
|
|||
_ => false,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn inline_blame_share_with_collaborators(&self) -> bool {
|
||||
match self.inline_blame {
|
||||
Some(InlineBlameSettings {
|
||||
share_with_collaborators,
|
||||
..
|
||||
}) => share_with_collaborators,
|
||||
_ => true,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, Debug, Default, Serialize, Deserialize, JsonSchema)]
|
||||
|
@ -479,6 +489,11 @@ pub struct InlineBlameSettings {
|
|||
/// Default: false
|
||||
#[serde(default)]
|
||||
pub show_commit_summary: bool,
|
||||
/// Allow sending blame information to collaborators in shared projects.
|
||||
///
|
||||
/// When false, the host will refuse remote blame requests for buffers. Default: true
|
||||
#[serde(default = "default_true")]
|
||||
pub share_with_collaborators: bool,
|
||||
}
|
||||
|
||||
fn default_inline_blame_padding() -> u32 {
|
||||
|
@ -493,6 +508,7 @@ impl Default for InlineBlameSettings {
|
|||
padding: default_inline_blame_padding(),
|
||||
min_column: 0,
|
||||
show_commit_summary: false,
|
||||
share_with_collaborators: true,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue