Commit Graph
11144 Commits
Author SHA1 Message Date
Max Brunsfeld 90e9db99ab Merge branch 'main' into collab-panel 2023-08-15 09:09:50 -07:00
Conrad Irwin 3aec608f60 Fix vim selection to include entire range (#2787)
Update vim mode to have vim selection and editor selections match.
Before this we had to adjust between vim selections and real selections
when making changes; now we have to adjust when making selections.

Release Notes:

- vim: Ensure editor selection matches the vim selection
([#1796](https://github.com/zed-industries/community/issues/1796)).
- vim: Fix `s` in visual line mode
- vim: Add `o` and `shift-o` to toggle direction of visual selection
- vim: Fix `v` and `shift-v` to toggle back to normal mode
- vim: Fix block selections like `vi}` to contain correct whitespace
2023-08-15 08:36:17 -06:00
Conrad Irwin 5dc507560c Fix vim escape in normal mode (#2844)
Fixes: zed-industries/community#1857

- vim: Fix escape in normal mode
([#1857](https://github.com/zed-industries/community/issues/1857)).
2023-08-15 08:35:49 -06:00
Mikayla feb8444c32 Merge branch 'main' into collab-panel 2023-08-15 03:25:45 -07:00
Mikayla Maki 644f4e10bb Add components example (#2846)
This PR is a continuation of the components UI exploration I've been
doing. It adds an example to the GPUI examples page and totally
restructures the generics on our MouseEventHandler.

Release Note:
- N/A
2023-08-15 03:17:50 -07:00
Mikayla ec2490269d Add components example
Re-arrange generics on mouse event handler
Add TypeTag struct for dynamically tagged components
2023-08-15 03:06:43 -07:00
Max BrunsfeldandMikayla 847022b6d0 Fix race condition when UpdateChannel message is received while fetching participants for previous update
Co-authored-by: Mikayla <mikayla@zed.dev>
2023-08-14 17:36:35 -07:00
Max BrunsfeldandMikayla 4507579f5a Limit number of participants shown in channel face piles
Co-authored-by: Mikayla <mikayla@zed.dev>
2023-08-14 17:11:03 -07:00
Max BrunsfeldandMikayla bd0c77061a Display intended mute status while still connecting to a room
Co-authored-by: Mikayla <mikayla@zed.dev>
2023-08-14 16:47:26 -07:00
Max BrunsfeldandMikayla f32cb99c81 Fix clicking outside of modals to dismiss them
Co-authored-by: Mikayla <mikayla@zed.dev>
2023-08-14 16:38:21 -07:00
Max BrunsfeldandMikayla d07a8ab12f Ensure channels are sorted alphabetically
Co-authored-by: Mikayla <mikayla@zed.dev>
2023-08-14 16:27:35 -07:00
Conrad Irwin 8e909670cd Fix vim escape in normal mode
Fixes: zed-industries/community#1857
2023-08-14 16:05:41 -06:00
Conrad Irwin ff42104392 Merge branch 'main' into vim-visual-selection 2023-08-14 15:29:33 -06:00
Nate Butler eec64e7e2d Update some status bar icons and states 2023-08-14 17:15:25 -04:00
Conrad Irwin ede910fee6 Better tests 2023-08-14 15:03:16 -06:00
Nate Butler 9c70f9b428 Initial modal styles 2023-08-14 17:01:34 -04:00
Nate Butler c1a33b6331 Continue panel styles 2023-08-14 16:12:39 -04:00
Kirill Bulatov 38d052bf05 Query less inlay hints (#2842)
Part of
https://linear.app/zed-industries/issue/Z-2750/investigate-performance-of-collaborating-on-large-files-with-inlay

Instead of querying the entire file for hints, query visible editor(s)
range + the areas above and below, of the same height.
Non-invalidating future queries (e.g. scrolling) query only missing
parts of the ranges.

Release Notes:

- Improved LSP resource usage by querying less hints for big files
2023-08-14 23:06:30 +03:00
Kirill Bulatov e16ac02134 Strip off inlay hint data that should be resolved (#2843)
Part of
https://linear.app/zed-industries/issue/Z-2750/investigate-performance-of-collaborating-on-large-files-with-inlay

* Declares client capabilities for hint resolution, marking both fields
available for resolution (`textEdits` and `tooltop`) as resolvable.
We do not use these fields anymore, hence can omit resolving them for
now, but LSP servers can omit them during general hint requests.

* Removes `tooltip` and replaces complex `label` with its simple string
counterpart for clients' hint responses from host: both should be
resolved through host later

Release Notes:

- Reduces collab mode clients' inlay hint footprint by enabling hint
data resolution
2023-08-14 23:06:19 +03:00
Nate Butler a4661e4e16 Use new icons in channel panel 2023-08-14 15:57:31 -04:00
Kirill Bulatov 0aa34790e5 Strip off inlay hints data that should be resolved 2023-08-14 22:50:55 +03:00
Nate Butler 363c7b2b1d Add new icons 2023-08-14 15:50:42 -04:00
Nate Butler 3b6cf98e1a Style channels panel items 2023-08-14 15:50:37 -04:00
Nate Butler 8c40bba730 Add ghost button variants 2023-08-14 15:13:57 -04:00
Max BrunsfeldandMikayla 401a2aefea Add icon before the empty contacts text
Co-authored-by: Mikayla <mikayla@zed.dev>
2023-08-14 11:57:19 -07:00
Max BrunsfeldandMikayla 54383d6c9b Structure the contact finder more similarly to the channel modal
Co-authored-by: Mikayla <mikayla@zed.dev>
2023-08-14 11:37:05 -07:00
Mikayla f0e7bbeb34 Move default collab panel to the right 2023-08-14 10:47:29 -07:00
Mikayla 9fbf6857eb Make empty state interactive 2023-08-14 10:34:00 -07:00
Mikayla 0d2e658f3d Add placeholder implementation 2023-08-14 10:24:00 -07:00
Nate Butler a791f150e5 Add list empty state style 2023-08-14 13:17:57 -04:00
Kirill Bulatov a43ffba3cd Better assert multibuffer edit test results 2023-08-14 20:12:35 +03:00
Kirill Bulatov 0487494da6 Do not filter out hints to be removed 2023-08-14 19:20:20 +03:00
Kirill Bulatov d055ffdf76 Clip offsets in inlay hint queries 2023-08-14 18:39:30 +03:00
Kirill Bulatov 22420ec3dc Optimize query ranges tracking 2023-08-14 16:19:44 +03:00
Kirill Bulatov e5fc5673ce Fix hint tests, add a char boundary bug test 2023-08-14 16:01:02 +03:00
Kirill Bulatov c941405bf9 Properly generate ranges to query 2023-08-14 11:25:02 +03:00
Kirill Bulatov 831b3e2c70 Do not add duplicate hints to the cache 2023-08-14 11:25:02 +03:00
Kirill Bulatov e26790e6fd Query inlay hints for parts of the file 2023-08-14 11:25:02 +03:00
Kirill Bulatov 383387a570 Query hints on every scroll 2023-08-14 11:25:02 +03:00
Kirill Bulatov 93b4957012 Hide inlay cache fields 2023-08-14 11:25:02 +03:00
Mikayla d55c1ad81e Merge branch 'main' into collab-panel 2023-08-12 12:44:22 -07:00
Mikayla Maki ad20edd716 Allow individual corner radii on containers, images, and drop shadows (#2841)
Here's an example in `crates/gpui/examples/corner_radii.rs`

![CleanShot 2023-08-12 at 11 06
09@2x](https://github.com/zed-industries/zed/assets/1789/1b5992ac-f7ef-45d8-b8c2-f0e677b07dd9)

@iamnbutler, in the themes, anywhere we have a container style can now
take either a `corner_radius` or a `corner_radii` field, both of these
fields can either have 1 number (for all 4 corners) or a an object like:

```
{
  top_left?: number,
  top_right?: number,
  bottom_left?: number, 
  bottom_right?:number 
} 
```

Fields that are not included in this second representation default to 0
corner radius.
2023-08-12 12:36:05 -07:00
Mikayla 75edcdb56f Make each setting optional 2023-08-12 12:23:46 -07:00
Mikayla 05f56bfdeb Add deserialization helper 2023-08-12 12:21:44 -07:00
Nathan Sobo 2b87398bf4 Include drop shadows with different corner radii in the example 2023-08-12 11:08:58 -06:00
Nathan Sobo 8d32b7e0fa Allow individual corner radii on drop shadows 2023-08-12 10:58:08 -06:00
Nathan Sobo 44bf7736ae Allow distinct corner radii for images 2023-08-12 10:50:04 -06:00
Nathan Sobo 56ba5b7edb Wire up per corner radii for quad
Still need to expose this in the styling layer and allow images
to have per corner radii.
2023-08-12 10:40:23 -06:00
Mikayla Maki 17e2bf7326 Add a compile test for the element derive (#2840)
Tried to use this the new element derive on a branch and ran into some
bugs, this fixes those.

Release Notes:

- N/A
2023-08-11 18:08:13 -07:00
Mikayla 3a9e050232 Add a compile test for the element derive 2023-08-11 18:00:12 -07:00