Commit log

9ee2707 vim: Add }/{ for start/end of paragraph

Click to expand commit body
Fixes: zed-industries/community#470

Conrad Irwin created

a9a51ab Added more tests and minimal file updates

Mikayla Maki created

a6dabf7 Make path updates minimal

Mikayla Maki created

787412b fmt and update dependency

Mikayla Maki created

cd670e3 Fix edge case with absolute file paths

Mikayla Maki created

33f5248 Add the ability to make new directories by adding slashes to a file name

Mikayla Maki created

f6b64dc Add click out events to GPUI (#2659)

Click to expand commit body
This PR adds a new mouse event type for catching when a click happens
outside of a given region.

This was added because I noticed a 'race condition' between the context
menu and the buttons which deploy a context menu. Buttons use on
an`on_click()` handler to deploy the context menu, but the context menu
was closing itself with an `on_down_out()` handler. This meant that the
order of operations was:

0. Context menu is open
1. User presses down on the button, _outside of the context menu_ 
2. `on_down_out()` is fired, closing the context menu
3. User releases the mouse
4. `click()` is fired, checks the state of the context menu, finds that
it's closed, and so opens it

You can see this behavior demonstrated with this video with a long-click
here:


https://github.com/zed-industries/zed/assets/2280405/588234c3-1567-477f-9a12-9e6a70643527

~~Switching from `on_down_out()` to `on_click_out()` means that the
click handler for the button can close the menu before the context menu
gets a chance to close itself.~~

~~However, GPUI does not have an `on_click_out()` event, hence this
PR.~~

~~Here's an example of the new behavior, with the same long-click
action:~~


https://github.com/zed-industries/zed/assets/2280405/a59f4d6f-db24-403f-a281-2c1148499413

Unfortunately, this `click_out` is the incorrect event for this to
happen on. This PR now adds a mechanism for delaying the firing of a
cancel action so that toggle buttons can signal that this on_down event
should not result in a menu closure.

Release Notes:

* Made context menus deployed from buttons toggle, instead of
hide-and-re-show, visibility on click

Mikayla Maki created

73b0f3b fmt

Mikayla Maki created

5366631 Remove on_click_out handler from context menu

Click to expand commit body
Add 'delay_cancel()' method and on_down handler to relevant buttons

Mikayla Maki created

530561e Extract assistant tool buttons into `tab_bar_button`

Nate Butler created

77b1203 Add `low_tokens_remaining` case to the assistant

Nate Butler created

d6112e4 Add doc comments for ColorScheme layer properties

Nate Butler created

2678dfd Update assistant styles

Nate Butler created

167dd1c Support basic inlay hints (#2660)

Click to expand commit body
Part of https://github.com/zed-industries/community/issues/138
Part of https://linear.app/zed-industries/issue/Z-477/inlay-hints

Supports LSP requests for inlay hints, LSP /refresh request to reload
them.
Reworks DisplayMap and underlying layer to unite suggestions with inlay
hints into new, `InlayMap`.
Adds a hint cache inside `Editor` that tracks buffer/project/LSP request
events, updates the hints and ensures opened editors are showing up to
date text hints on top.

Things left to do after this PR:
* docs on how to configure inlay hints
* blogpost
* dynamic hints: resolve, hover, navigation on click, etc.

Release Notes:

- Added basic support of inlay hints

Kirill Bulatov created

b146762 Remove a flacky test, fix the failing one

Kirill Bulatov created

652909c Post-rebase fixes

Kirill Bulatov created

3445bc4 Invalidate refresh tasks better

Kirill Bulatov created

98edc0f Simplify the hint cache code

Kirill Bulatov created

083e4e7 Better tests, invalidate multibuffer excerpts better

Kirill Bulatov created

943c93f Simplify hint task queueing

Kirill Bulatov created

30e77aa More inlay hint cache tests

Kirill Bulatov created

429a9cd Use fold points to go to display map's prev/next line boundary

Click to expand commit body
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>

Kirill Bulatov and Antonio Scandurra created

bb9ade5 Fix wrap map test

Click to expand commit body
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>

Kirill Bulatov and Antonio Scandurra created

2b59f27 Fix fold map tests

Click to expand commit body
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>

Kirill Bulatov and Antonio Scandurra created

0972766 Add more hint tests

Kirill Bulatov created

15e0feb Move highlights from fold to inlay randomized tests

Kirill Bulatov created

667b70a Move hint settings on the language level

Kirill Bulatov created

480d8c5 Theme hints and suggestions differently

Kirill Bulatov created

3312c91 Improve inlay hint highlights

Click to expand commit body
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>

Kirill Bulatov and Antonio Scandurra created

2c54d92 Test inlay hint cache

Kirill Bulatov created

143a020 Update Hint Style

Click to expand commit body
zzz

Nate Butler created

67214f0 Only skip /refresh inlay queries when vislble range is not updated

Kirill Bulatov created

096bad1 Revert useless changes, simplify

Kirill Bulatov created

f77b680 Account for inlay biases when clipping a point

Antonio Scandurra created

976edfe Add `Cursor::next_item`

Antonio Scandurra created

5c21ed4 Properly filter out task hints

Kirill Bulatov created

dfb3021 Remove mutex usage from *Map contents

Kirill Bulatov created

acef5ff Query hints when editors gets open and visible

Kirill Bulatov created

11fee4c Do not eagerly cancel running tasks

Kirill Bulatov created

4d4544f Split excerpts into mutliple ranges for inlay hint queries

Kirill Bulatov created

2c7900e Use excerpt visible range in query filtering

Kirill Bulatov created

83b3a91 Support better inlay cache parallelization

Kirill Bulatov created

890b164 Forward inlay hint refresh requests to clients, test coop inlay hints

Kirill Bulatov created

a68e68a Properly filter out new hints outside of excerpts' visible ranges

Kirill Bulatov created

ba3d1e4 Deduplicate inlay hints queries with buffer versions

Kirill Bulatov created

f25a09b Avoid excessive allocations with Arc around excerpt cached inlays

Kirill Bulatov created

48982c3 Filter away new hints not in excerpt range

Kirill Bulatov created

316e19c Remove stale cancelled inlay hints workaround

Kirill Bulatov created

96a34ad Use text anchors as hint position in hints cache

Click to expand commit body
co-authored-by: Max Brunsfeld <max@zed.dev>

Kirill Bulatov and Max Brunsfeld created

781fa0c Deduplicate LSP requests on multibuffer scroll

Kirill Bulatov created