mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-27 12:22:49 +03:00
7e1a184446
Some code blocks that are returned in tooltips (returned by language servers, for example) use the language file extension as the language in the the triple-backtick code blocks. Example: ```rs fn rust_code() {} ``` ```cpp fn rust_code() {} ``` Before this change we only looked up the language with the `rs`/`cpp`/... being interpreted as the language name. Now we also treat it as a possible file extension. Release Notes: - Fixed Markdown code blocks in tooltips not having correct language highlighting. Before: ![image](https://github.com/zed-industries/zed/assets/1185253/1f3870a6-467c-4e5f-9e49-1ff32240d10f) After: ![screenshot-2024-04-16-12 43 39@2x](https://github.com/zed-industries/zed/assets/1185253/21a45ed5-825a-412d-9dc0-35a444fc64ba) Co-authored-by: Bennet <bennetbo@gmx.de> |
||
---|---|---|
.. | ||
src | ||
build.rs | ||
Cargo.toml | ||
LICENSE-GPL |