mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-08 10:02:56 +00:00
0102ffbfca
Follow-up of https://github.com/zed-industries/zed/pull/6947 (cc @alygin) that fixes a few style nits and refactors the code around: * use already stored `currently_opened_path` to decide what to do with the history item sorting * use the same method to set history items, encapsulate the bubbling up logic there * ensure history elements are properly sorted before populating The main reason to change all that is the new comparator in the previous version: https://github.com/zed-industries/zed/pull/6947/files#diff-eac7c8c99856f77cee39117708cd1467fd5bbc8805da2564f851951638020842R234 that almost violated `util::extend_sorted` contract, requiring both collections to be sorted the same way as the comparator would be: it did work, because we bubbled currently open item up in the history items list manually, and that we have only one such item. Release Notes: - N/A
39 lines
1.1 KiB
TOML
39 lines
1.1 KiB
TOML
[package]
|
|
name = "file_finder"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
publish = false
|
|
license = "GPL-3.0-or-later"
|
|
|
|
[lib]
|
|
path = "src/file_finder.rs"
|
|
doctest = false
|
|
|
|
[dependencies]
|
|
anyhow.workspace = true
|
|
collections = { path = "../collections" }
|
|
editor = { path = "../editor" }
|
|
fuzzy = { path = "../fuzzy" }
|
|
gpui = { path = "../gpui" }
|
|
itertools = "0.11"
|
|
menu = { path = "../menu" }
|
|
picker = { path = "../picker" }
|
|
postage.workspace = true
|
|
project = { path = "../project" }
|
|
serde.workspace = true
|
|
settings = { path = "../settings" }
|
|
text = { path = "../text" }
|
|
theme = { path = "../theme" }
|
|
ui = { path = "../ui" }
|
|
util = { path = "../util" }
|
|
workspace = { path = "../workspace" }
|
|
|
|
[dev-dependencies]
|
|
ctor.workspace = true
|
|
editor = { path = "../editor", features = ["test-support"] }
|
|
env_logger.workspace = true
|
|
gpui = { path = "../gpui", features = ["test-support"] }
|
|
language = { path = "../language", features = ["test-support"] }
|
|
serde_json.workspace = true
|
|
theme = { path = "../theme", features = ["test-support"] }
|
|
workspace = { path = "../workspace", features = ["test-support"] }
|