ZIm/crates/extension_host/src
tidely 0e1d77dc40
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-23 10:37:26 -04:00
..
wasm_host extension_host: Add npm:install capability (#35144) 2025-08-23 10:36:02 -04:00
capability_granter.rs extension_host: Add npm:install capability (#35144) 2025-08-23 10:36:02 -04:00
extension_host.rs extension_host: Refactor capability checks (#35139) 2025-08-23 10:36:02 -04:00
extension_settings.rs VSCode Settings import (#29018) 2025-04-23 20:54:09 +00:00
extension_store_test.rs languages: Remove a eager conversion from LanguageName to String (#35667) 2025-08-23 10:37:26 -04:00
headless_host.rs Rework extension-related errors (#34620) 2025-07-17 12:20:47 +00:00
wasm_host.rs Kb/wasm panics (#35319) 2025-08-23 10:36:11 -04:00