37ffa86
Add libzstd to script/linux (#8780)
Click to expand commit body
add a missing dependency to linux script
aryal created
37ffa86
Add libzstd to script/linux (#8780)
add a missing dependency to linux script
aryal created
9095a6b
Replace todo calls with error values in linux/platform (#8531)
We currently use a mix of unimplemented methods with empty bodies and `todo!()` calls in linux/platform. `todo!()`s cause crashes in runtime with accidental key presses or clicks. To avoid this, this PR replaces `todo!()`s in linux/platform with error values. This helps when working on Zed itself, testing PRs etc. Release Notes: - N/A
Ömer Sinan Ağacan created
69e0474
Windows gpui platform (#8490)
First implementation of gpui platform for Windows. Release Notes: - N/A --------- Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
白山風露 and Marshall Bowers created
a88df2c
Enable `clippy::default_constructed_unit_structs` (#8778)
This PR enables the [`clippy::default_constructed_unit_structs`](https://rust-lang.github.io/rust-clippy/master/index.html#/default_constructed_unit_structs) rule and fixes the outstanding violations. Release Notes: - N/A
Marshall Bowers created
53630dc
Enable `clippy::needless_lifetimes` (#8777)
This PR enables the [`clippy::needless_lifetimes`](https://rust-lang.github.io/rust-clippy/master/index.html#/needless_lifetimes) rule and fixes the outstanding violations. Release Notes: - N/A
Marshall Bowers created
1fa9496
Enable `clippy::explicit_counter_loop` (#8776)
This PR enables the [`clippy::explicit_counter_loop`](https://rust-lang.github.io/rust-clippy/master/index.html#/explicit_counter_loop) rule and fixes the outstanding violations. Release Notes: - N/A
Marshall Bowers created
08f9c3f
Accept partial copilot suggestions (#8682)
Fixes https://github.com/zed-industries/zed/issues/8020 This PR adds a new shortcut cmd-right, if a copilot suggestion exists. The suggestions is accepted word by word. It emulates the behaviour of VS Code's Github Copilot implementation. Release Notes: - Added ability to accept partial copilot suggestions ([8020](https://github.com/zed-industries/zed/issues/8020))
Jonathan created
56f0418
Enable `clippy::needless_option_as_deref` (#8775)
This PR enables the [`clippy::needless_option_as_deref`](https://rust-lang.github.io/rust-clippy/master/index.html#/needless_option_as_deref) rule and fixes the outstanding violations. Release Notes: - N/A
Marshall Bowers created
2964a01
Enable `clippy::identity_op` (#8773)
This PR enables the [`clippy::identity_op`](https://rust-lang.github.io/rust-clippy/master/index.html#/identity_op) rule and fixes the outstanding violations. Release Notes: - N/A
Marshall Bowers created
83f6a1e
Enable `clippy::vec_init_then_push` (#8771)
This PR enables the [`clippy::vec_init_then_push`](https://rust-lang.github.io/rust-clippy/master/index.html#/vec_init_then_push) rule and fixes the outstanding violations. Release Notes: - N/A
Marshall Bowers created
6685d3a
Enable `clippy::redundant_guards` (#8770)
This PR enables the [`clippy::redundant_guards`](https://rust-lang.github.io/rust-clippy/master/index.html#/redundant_guards) rule and fixes the outstanding violations. Release Notes: - N/A
Marshall Bowers created
bfc6485
Enable `clippy::bool_comparison` (#8769)
This PR enables the [`clippy::bool_comparison`](https://rust-lang.github.io/rust-clippy/master/index.html#/bool_comparison) rule and fixes the outstanding violations. Release Notes: - N/A
Marshall Bowers created
5fad319
Enable `clippy::expect_fun_call` (#8768)
This PR enables the [`clippy::expect_fun_call`](https://rust-lang.github.io/rust-clippy/master/index.html#/expect_fun_call) rule and fixes the outstanding violations. Release Notes: - N/A
Marshall Bowers created
fe04f69
Enable `clippy::useless_conversion` (#8767)
This PR enables the [`clippy::useless_conversion`](https://rust-lang.github.io/rust-clippy/master/index.html#/useless_conversion) rule and fixes the outstanding violations. Release Notes: - N/A
Marshall Bowers created
20d1333
Fix some comments (#8760)
Release Notes: - N/A Signed-off-by: geekvest <cuimoman@sohu.com>
geekvest created
a6dbaac
Enable `clippy::needless_question_mark` (#8759)
This PR enables the [`clippy::needless_question_mark`](https://rust-lang.github.io/rust-clippy/master/index.html#/needless_question_mark) rule and fixes the outstanding violations. Release Notes: - N/A
Marshall Bowers created
33790b8
Enable `clippy::useless_format` (#8758)
This PR enables the [`clippy::useless_format`](https://rust-lang.github.io/rust-clippy/master/index.html#/useless_format) rule and fixes the outstanding violations. Release Notes: - N/A
Marshall Bowers created
373e18b
Enable `clippy::unnecessary_unwrap` (#8756)
This PR enables the [`clippy::unnecessary_unwrap`](https://rust-lang.github.io/rust-clippy/master/index.html#/unnecessary_unwrap) rule and fixes the outstanding violations. Release Notes: - N/A
Marshall Bowers created
191fcf6
Enable `clippy::nonminimal_bool` (#8755)
This PR enables the [`clippy::nonminimal_bool`](https://rust-lang.github.io/rust-clippy/master/index.html#/nonminimal_bool) rule and fixes the outstanding violations. Release Notes: - N/A
Marshall Bowers created
2f87647
Enable `clippy::extra_unused_lifetimes` (#8754)
This PR enables the [`clippy::extra_unused_lifetimes`](https://rust-lang.github.io/rust-clippy/master/index.html#/extra_unused_lifetimes) rule and fixes the outstanding violations. Release Notes: - N/A
Marshall Bowers created
6599744
Enable `clippy::explicit_auto_deref` (#8753)
This PR enables the [`clippy::explicit_auto_deref`](https://rust-lang.github.io/rust-clippy/master/index.html#/explicit_auto_deref) rule and fixes the outstanding violations. Release Notes: - N/A
Marshall Bowers created
6a9e8fa
Enable `clippy::unnecessary_operation` (#8752)
This PR enables the [`clippy::unnecessary_operation`](https://rust-lang.github.io/rust-clippy/master/index.html#/unnecessary_operation) rule and fixes the outstanding violations. Release Notes: - N/A
Marshall Bowers created
ea68f86
Enable `clippy::option_map_unit_fn` (#8751)
This PR enables the [`clippy::option_map_unit_fn`](https://rust-lang.github.io/rust-clippy/master/index.html#/option_map_unit_fn) rule and fixes the outstanding violations. Release Notes: - N/A
Marshall Bowers created
d19957b
Enable `clippy::redundant_locals` (#8750)
This PR enables the [`clippy::redundant_locals`](https://rust-lang.github.io/rust-clippy/master/index.html#/redundant_locals) rule and fixes the outstanding violations. Release Notes: - N/A
Marshall Bowers created
328c8a9
Enable `clippy::search_is_some` (#8748)
This PR enables the [`clippy::search_is_some`](https://rust-lang.github.io/rust-clippy/master/index.html#/search_is_some) rule and fixes the outstanding violations. Release Notes: - N/A
Marshall Bowers created
3ab16d8
Enable `clippy::option_as_ref_deref` (#8747)
This PR enables the [`clippy::option_as_ref_deref`](https://rust-lang.github.io/rust-clippy/master/index.html#/option_as_ref_deref) rule and fixes the outstanding violations. Release Notes: - N/A
Marshall Bowers created
ca9d5a2
Enable `clippy::needless_borrowed_reference` (#8746)
This PR enables the [`clippy::needless_borrowed_reference`](https://rust-lang.github.io/rust-clippy/master/index.html#/needless_borrowed_reference) rule and fixes the outstanding violations. Release Notes: - N/A
Marshall Bowers created
bd00aed
Enable `clippy::drain_collect` (#8745)
This PR enables the [`clippy::drain_collect`](https://rust-lang.github.io/rust-clippy/master/index.html#/drain_collect) rule and fixes the outstanding violations. Release Notes: - N/A
Marshall Bowers created
4097e88
Enable `clippy::needless_arbitrary_self_type` (#8743)
This PR enables the [`clippy::needless_arbitrary_self_type`](https://rust-lang.github.io/rust-clippy/master/index.html#/needless_arbitrary_self_type) rule and fixes the outstanding violations. Release Notes: - N/A
Marshall Bowers created
008c505
Enable `clippy::unit_arg` (#8742)
This PR enables the [`clippy::unit_arg`](https://rust-lang.github.io/rust-clippy/master/index.html#/unit_arg) rule and suppresses the false positive that it flags. Release Notes: - N/A
Marshall Bowers created
2bfc646
Enable `clippy::filter_map_identity` (#8741)
This PR enables the [`clippy::filter_map_identity`](https://rust-lang.github.io/rust-clippy/master/index.html#/filter_map_identity) rule and fixes the outstanding violations. Release Notes: - N/A
Marshall Bowers created
3e28791
Enable `clippy::unnecessary_find_map` (#8740)
This PR enables the [`clippy::unnecessary_find_map`](https://rust-lang.github.io/rust-clippy/master/index.html#/unnecessary_find_map) rule and fixes the outstanding violations. Release Notes: - N/A
Marshall Bowers created
503beba
Enable `clippy::manual_flatten` (#8739)
This PR enables the [`clippy::manual_flatten`](https://rust-lang.github.io/rust-clippy/master/index.html#/manual_flatten) rule and fixes the outstanding violations. Release Notes: - N/A
Marshall Bowers created
f79f56f
Enable `clippy::unnecessary_filter_map` (#8738)
This PR enables the [`clippy::unnecessary_filter_map`](https://rust-lang.github.io/rust-clippy/master/index.html#/unnecessary_filter_map) rule and fixes the outstanding violations. Release Notes: - N/A
Marshall Bowers created
a17c207
Enable `clippy::manual_find` (#8737)
This PR enables the [`clippy::manual_find`](https://rust-lang.github.io/rust-clippy/master/index.html#/manual_find) rule and fixes the outstanding violations. Release Notes: - N/A
Marshall Bowers created
fc8e515
Enable `clippy::too_many_arguments` (#8734)
This PR enables the [`clippy::too_many_arguments`](https://rust-lang.github.io/rust-clippy/master/index.html#/too_many_arguments) rule. I opted to add `#[allow(clippy::too_many_arguments)]` on the individual violations, as reworking them to take fewer arguments is a more involved task. Release Notes: - N/A
Marshall Bowers created
eaf2fbb
Enable `clippy::map_flatten` (#8733)
This PR enables the [`clippy::map_flatten`](https://rust-lang.github.io/rust-clippy/master/index.html#/map_flatten) rule and fixes the outstanding violations. Release Notes: - N/A
Marshall Bowers created
8bc35c3
Enable `clippy::to_string_in_format_args` (#8732)
This PR enables the [`clippy::to_string_in_format_args`](https://rust-lang.github.io/rust-clippy/master/index.html#/to_string_in_format_args) rule and fixes the outstanding violations. Release Notes: - N/A
Marshall Bowers created
52052f3
Enable `clippy::map_identity` (#8731)
This PR enables the [`clippy::map_identity`](https://rust-lang.github.io/rust-clippy/master/index.html#/map_identity) rule and fixes the outstanding violations. Release Notes: - N/A
Marshall Bowers created
d7962aa
Add license to Gleam extension (#8730)
This PR adds a license to the Gleam extension crate, since the bundling script was unhappy that it didn't have one. Since extensions like this one may ultimately live outside of Zed itself, I went with the Apache 2.0 license. Release Notes: - N/A
Marshall Bowers created
9735912
Enable `clippy::clone_on_copy` (#8728)
This PR enables the [`clippy::clone_on_copy`](https://rust-lang.github.io/rust-clippy/master/index.html#/clone_on_copy) rule and fixes the outstanding violations. Release Notes: - N/A
Marshall Bowers created
5935681
Enable `clippy::single_char_pattern` (#8727)
This PR enables the [`clippy::single_char_pattern`](https://rust-lang.github.io/rust-clippy/master/index.html#/single_char_pattern) rule and fixes the outstanding violations. Release Notes: - N/A
Marshall Bowers created
12440d5
terminal: Make `rgb_for_index` take a `u8` instead of a `&u8` (#8726)
This PR makes the `rgb_for_index` take a `u8` instead of a `&u8`. `u8` is `Copy` and is only 1 byte, so there really isn't any reason to pass a reference to it. Release Notes: - N/A
Marshall Bowers created
4b81b15
Enable `clippy::useless_conversion` (#8724)
This PR enables the [`clippy::useless_conversion`](https://rust-lang.github.io/rust-clippy/master/index.html#/useless_conversion) rule and fixes the outstanding violations. Release Notes: - N/A
Marshall Bowers created
87efb75
Enable `clippy::bind_instead_of_map` (#8723)
This PR enables the [`clippy::bind_instead_of_map`](https://rust-lang.github.io/rust-clippy/master/index.html#/bind_instead_of_map) rule and fixes the outstanding violations. Release Notes: - N/A
Marshall Bowers created
bf666af
Deny all Clippy warnings (#8720)
This PR makes Clippy deny all warnings across the workspace. We now enumerate all of the rules that have violations and temporarily allow them, with the goal being to drive the list down over time. On Windows we don't yet use `--deny warnings`, as the Windows build still has some warnings. Release Notes: - N/A
Marshall Bowers created
c9a509c
Add `cargo xtask clippy` (#8722)
This PR sets up a `cargo xtask clippy` command for running `cargo clippy` with our defined set of options. The intent is to make this easier to manage as we start enabling more Clippy rules. Release Notes: - N/A
Marshall Bowers created
c19587d
Fix Clippy warnings in `util` crate (#8721)
This PR fixes a number of Clippy warnings in the `util` crate. Release Notes: - N/A
Marshall Bowers created
0ac203b
Fix Clippy warnings in `client` crate (#8719)
This PR fixes a number of Clippy warnings in the `client` crate. Release Notes: - N/A
Marshall Bowers created
5de7492
Add flex_wrap_* and content_* to GPUI (#8710)
Now with GPUI you can auto-layout something like this: <img width="560" alt="Screenshot 2024-03-02 at 13 56 50" src="https://github.com/zed-industries/zed/assets/226244/8ec4b683-dd7d-41f8-8b09-4be66ecec9a0">
Tommi Pisto created