zed/crates
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
..
activity_indicator Rename h_stack and v_stack to h_flex and v_flex, respectively (#4053) 2024-01-15 11:34:06 -05:00
ai chore: Fix clippy::needless_borrow up to an editor 2024-01-21 15:03:24 +01:00
assets Fix assets build 2024-01-08 16:53:01 -07:00
assistant Add API for retrieving the date that a contributor signed the CLA 2024-01-22 13:11:24 -08:00
audio Remove 2 suffix from gpui 2024-01-03 12:59:39 -08:00
auto_update Remove commented-out code in auto_update (#4149) 2024-01-18 23:12:42 -05:00
breadcrumbs Rename h_stack and v_stack to h_flex and v_flex, respectively (#4053) 2024-01-15 11:34:06 -05:00
call chore: Fix clippy::needless_borrow up to an editor 2024-01-21 15:03:24 +01:00
channel chore: Fix clippy::needless_borrow up to an editor 2024-01-21 15:03:24 +01:00
cli Code to allow opening zed:/channel/1234 2023-10-05 14:57:45 -07:00
client chore: Fix clippy::needless_borrow up to an editor 2024-01-21 15:03:24 +01:00
clock Remove local timestamps from CRDT operations 2023-08-31 16:23:06 -07:00
collab collab 0.40.0 2024-01-22 17:30:55 -08:00
collab_ui Update Channel membership UI 2024-01-22 14:48:14 -07:00
collections Use FxHashMap and FxHashSet in hot code paths 2023-12-12 13:35:22 +01:00
color Update docs 2024-01-17 11:39:09 -05:00
command_palette Make platform input handler private 2024-01-20 06:56:19 -08:00
copilot chore: Fix clippy::needless_borrow up to an editor 2024-01-21 15:03:24 +01:00
copilot_ui Make platform input handler private 2024-01-20 06:56:19 -08:00
db Remove 2 suffix from gpui 2024-01-03 12:59:39 -08:00
diagnostics Port the rest of the app 2024-01-21 20:26:33 -08:00
editor Fix off-by-one highlighting in hover tooltip (#4206) 2024-01-22 23:12:08 -07:00
feature_flags Use try_global() 2024-01-18 01:33:30 -05:00
feedback Rename h_stack and v_stack to h_flex and v_flex, respectively (#4053) 2024-01-15 11:34:06 -05:00
file_finder Editor docs (#4097) 2024-01-18 00:48:37 +01:00
fs chore: Fix clippy::needless_borrow up to an editor 2024-01-21 15:03:24 +01:00
fsevent
fuzzy Remove 2 suffix from gpui 2024-01-03 12:59:39 -08:00
git chore: Fix clippy::needless_borrow up to an editor 2024-01-21 15:03:24 +01:00
go_to_line Editor docs (#4097) 2024-01-18 00:48:37 +01:00
gpui fix test 2024-01-22 19:42:25 -08:00
gpui_macros Fix typos detected by crate-ci/typos 2024-01-17 14:31:21 -08:00
install_cli Remove 2 suffix from gpui 2024-01-03 12:59:39 -08:00
journal Make platform input handler private 2024-01-20 06:56:19 -08:00
language chore: Fix clippy::needless_borrow up to an editor 2024-01-21 15:03:24 +01:00
language_selector Pull out fluent builder helpers into re-usable trait 2024-01-18 15:31:31 -08:00
language_tools lsp-log: Reemit Editors search events. 2024-01-22 14:02:48 +01:00
live_kit_client Adjust APIs for simpler examples in blog post 2024-01-17 21:19:28 -07:00
live_kit_server Implement live kit promotion/demotion 2024-01-09 16:10:12 -07:00
lsp chore: Fix clippy::needless_borrow up to an editor 2024-01-21 15:03:24 +01:00
media Switch Arc<Mutex<Keymap>> to Rc<RefCell<Keymap>>, a relic of the GPUI2 port. 2024-01-22 19:30:38 -08:00
menu Remove 2 suffix from gpui 2024-01-03 12:59:39 -08:00
multi_buffer chore: Fix clippy::needless_borrow up to an editor 2024-01-21 15:03:24 +01:00
node_runtime Upgrade async-compression dep 2023-12-06 14:29:09 -08:00
notifications Rename notification_store 2024-01-03 20:02:23 -05:00
outline Editor docs (#4097) 2024-01-18 00:48:37 +01:00
picker Wrap over picker's matches when reaching the end of the list 2024-01-18 16:54:35 +02:00
plugin
plugin_macros
plugin_runtime Update tenses of doc comment summary lines (#4161) 2024-01-19 11:18:50 -05:00
prettier Remove 2 suffix from gpui 2024-01-03 12:59:39 -08:00
project chore: Fix clippy::needless_borrow up to an editor 2024-01-21 15:03:24 +01:00
project_panel Pull out fluent builder helpers into re-usable trait 2024-01-18 15:31:31 -08:00
project_symbols Editor docs (#4097) 2024-01-18 00:48:37 +01:00
quick_action_bar Editor docs (#4097) 2024-01-18 00:48:37 +01:00
recent_projects Fix typos detected by crate-ci/typos 2024-01-17 14:31:21 -08:00
refineable WIP: text_system 2024-01-22 19:30:40 -08:00
rich_text chore: Fix clippy::needless_borrow up to an editor 2024-01-21 15:03:24 +01:00
rope Fix possessive "its" in docs and comments (#3998) 2024-01-10 10:09:48 -05:00
rpc Merge branch 'main' into language-api-docs 2024-01-18 15:06:45 -08:00
search Fix focus and re-focus of project-wide search 2024-01-18 15:05:45 +01:00
semantic_index Use try_global() 2024-01-18 01:33:30 -05:00
settings chore: Fix clippy::needless_borrow up to an editor 2024-01-21 15:03:24 +01:00
snippet
sqlez Fix typos detected by crate-ci/typos 2024-01-17 14:31:21 -08:00
sqlez_macros
story Finish documenting the action, asset, color, and element modules in GPUI 2024-01-20 20:15:23 -08:00
storybook Store a z-index id per-layer 2024-01-22 10:16:59 -05:00
sum_tree chore: fix clippy lints for rope2, sum_tree, text2 and util 2024-01-01 23:50:14 +01:00
terminal chore: Fix clippy::needless_borrow up to an editor 2024-01-21 15:03:24 +01:00
terminal_view Moved Frame struct into element context, to be close to it's associated methods 2024-01-21 20:52:24 -08:00
text Fix / remove small todos 2024-01-09 14:16:46 -08:00
theme Add more terminal colors to the theme (#4168) 2024-01-19 14:22:53 -05:00
theme_importer Add more terminal colors to the theme (#4168) 2024-01-19 14:22:53 -05:00
theme_selector Rename h_stack and v_stack to h_flex and v_flex, respectively (#4053) 2024-01-15 11:34:06 -05:00
ui Store a z-index id per-layer 2024-01-22 10:16:59 -05:00
util Introduce a ZED_MEASUREMENTS env var and use it to measure frame time 2024-01-22 11:39:20 +01:00
vcs_menu Fix typos detected by crate-ci/typos 2024-01-17 14:31:21 -08:00
vim Merge remote-tracking branch 'origin/main' into jk 2024-01-21 22:03:54 -07:00
welcome Fix typos detected by crate-ci/typos 2024-01-17 14:31:21 -08:00
workspace Fix panel deserialization (#4198) 2024-01-22 12:37:38 -07:00
zed Fix panel deserialization (#4198) 2024-01-22 12:37:38 -07:00
zed_actions Remove 2 suffix from gpui 2024-01-03 12:59:39 -08:00