Distinguish between singleton and non-singleton workspace items
* Prompt to save singleton items before non-singleton ones * Don't prompt to save multi-buffers if they contain excerpts to items that are open elsewhere and not being closed. Co-authored-by: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
fbd589b589
commit
0becbe482a
6 changed files with 190 additions and 115 deletions
|
@ -136,6 +136,14 @@ impl Settings {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(test, feature = "test-support"))]
|
||||
pub fn test_async(cx: &mut gpui::TestAppContext) {
|
||||
cx.update(|cx| {
|
||||
let settings = Self::test(cx);
|
||||
cx.set_global(settings.clone());
|
||||
});
|
||||
}
|
||||
|
||||
pub fn merge(
|
||||
&mut self,
|
||||
data: &SettingsFileContent,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue