Respect workspace order in recent projects (#12844)
<img width="1266" alt="Screenshot 2024-06-10 at 14 33 32" src="https://github.com/zed-industries/zed/assets/1347854/c75de033-f2c8-4500-8b34-46b5f0260d3d"> This changes the recent projects panel to use the order of paths from the workspace rather than always being alphanumerical. This follows the work to introduce manual workspace ordering to ensure the recent projects paths reflect the order of paths in the main project panel. Release Notes: - Improve the recent project panel by ordering paths using the workspace order
This commit is contained in:
parent
d8c93e1bfd
commit
f5f73efa8a
3 changed files with 17 additions and 10 deletions
|
@ -39,8 +39,8 @@ impl LocalPaths {
|
|||
Self(Arc::new(paths))
|
||||
}
|
||||
|
||||
pub fn paths(&self) -> Arc<Vec<PathBuf>> {
|
||||
self.0.clone()
|
||||
pub fn paths(&self) -> &Arc<Vec<PathBuf>> {
|
||||
&self.0
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue