(path: &PathBuf, entries: &[PromptStashEntry])
| 1429 | } |
| 1430 | |
| 1431 | fn store_stash(path: &PathBuf, entries: &[PromptStashEntry]) { |
| 1432 | let payload = StashStore { |
| 1433 | entries: entries.to_vec(), |
| 1434 | }; |
| 1435 | if let Ok(json) = serde_json::to_string(&payload) { |
| 1436 | let _ = std::fs::write(path, json); |
| 1437 | } |
| 1438 | } |
| 1439 | |
| 1440 | /// Extract a `#line` or `#line-line` range suffix from a file path reference. |
| 1441 | /// Returns the base path and an optional (start, optional_end) line range. |
no outgoing calls
no test coverage detected