zed/crates/editor
Conrad Irwin ce0833eadf
Fix off-by-one highlighting in hover tooltip (#4206)
rust analyzer has a tendency to return markdown of the form:

```rust
 // <-- note the leading space
blah blah blah
```

This is clearly defectuous, so we used to .trim() the output.

Unfortunately we trim after applying syntax highlighting, so that causes
the output to look goofy.

Fix this by updating the highlighting when we trim.

[[PR Description]]

Release Notes:

- Fixed a bug where syntax highlighting was off in hover tooltips
2024-01-22 23:12:08 -07:00
..
src Fix off-by-one highlighting in hover tooltip (#4206) 2024-01-22 23:12:08 -07:00
Cargo.toml Remove 2 suffix from gpui 2024-01-03 12:59:39 -08:00