ZIm/crates/zed/src
tidely c595ed19d6
languages: Remove a eager conversion from LanguageName to String (#35667)
This PR changes the signature of `language_names` from

```rust
pub fn language_names(&self) -> Vec<String>
// Into
pub fn language_names(&self) -> Vec<LanguageName>
```

The function previously eagerly converted `LanguageName`'s to
`String`'s, which requires the reallocation of all of the elements. The
functions get called in many places in the code base, but only one of
which actually requires the conversion to a `String`. In one case it
would do a `SharedString` -> `String` -> `SharedString` conversion,
which is now totally bypassed.

Release Notes:

- N/A
2025-08-05 23:46:57 +03:00
..
zed Rename remaining mentions of "inline completion" to "edit prediction" (#35512) 2025-08-04 16:22:18 +00:00
main.rs Add minidump crash reporting (#35263) 2025-08-04 18:19:42 -07:00
reliability.rs Fix minidump endpoint configuration (#35646) 2025-08-05 10:07:30 -07:00
zed-main.rs Fix Unexpected Console Window When Running Zed Release Build (#32144) 2025-06-05 19:38:19 +08:00
zed.rs languages: Remove a eager conversion from LanguageName to String (#35667) 2025-08-05 23:46:57 +03:00