Files
oak-gpui/crates
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
..
2025-08-04 18:45:17 +00:00
2025-08-05 18:16:47 +00:00
2025-07-29 13:24:34 -07:00
2025-08-05 18:16:47 +00:00
2025-07-21 13:44:51 +02:00
2025-06-17 20:26:27 +00:00
2025-07-17 14:25:55 +00:00
2025-07-08 14:34:57 +00:00
2025-08-04 09:49:51 -03:00
2025-08-05 19:48:15 +00:00