zed/crates/repl/src
Kirill Bulatov 28849dd2a8
Fix item closing overly triggering save dialogues (#21374)
Closes https://github.com/zed-industries/zed/issues/12029

Allows to introspect project items inside items more deeply, checking
them for being dirty.
For that:
* renames `project::Item` into `project::ProjectItem`
* adds an `is_dirty(&self) -> bool` method to the renamed trait
* changes the closing logic to only care about dirty project items when
checking for save prompts conditions
* save prompts are raised only if the item is singleton without a
project path; or if the item has dirty project items that are not open
elsewhere

Release Notes:

- Fixed item closing overly triggering save dialogues
2024-12-01 01:48:31 +02:00
..
components Implement RunningKernel trait for native and remote kernels (#20934) 2024-11-21 14:00:19 -08:00
kernels Upgrade jupyter websocket client (#21095) 2024-11-22 22:11:20 -08:00
notebook Fix item closing overly triggering save dialogues (#21374) 2024-12-01 01:48:31 +02:00
outputs Allow base64 encoded images to be decoded with or without padding (#20616) 2024-11-13 11:26:42 -08:00
components.rs Show kernel options in a picker (#20274) 2024-11-07 17:59:53 -08:00
jupyter_settings.rs Revert "settings: Remove auxiliary Content types where possible (#16744)" (#17768) 2024-09-12 14:46:08 -04:00
notebook.rs Initial Notebook UI structure (#19756) 2024-10-29 11:30:07 -07:00
outputs.rs Initial Notebook UI structure (#19756) 2024-10-29 11:30:07 -07:00
repl.rs Create RunningKernel trait to allow for native and remote jupyter kernels (#20842) 2024-11-18 18:12:23 -08:00
repl_editor.rs Fix item closing overly triggering save dialogues (#21374) 2024-12-01 01:48:31 +02:00
repl_sessions_ui.rs Fix item closing overly triggering save dialogues (#21374) 2024-12-01 01:48:31 +02:00
repl_store.rs Pass through remote kernel's language on legacy selection (#21088) 2024-11-22 16:31:11 -08:00
session.rs Implement RunningKernel trait for native and remote kernels (#20934) 2024-11-21 14:00:19 -08:00