Commit Graph
31406 Commits
Author SHA1 Message Date
Max Brunsfeld dcc9d282ec Notify language servers of FS changes 2023-03-21 11:26:13 -07:00
Max Brunsfeld 2dc96db04c Add failing test for reporting FS change events to language servers 2023-03-21 11:26:13 -07:00
Antonio Scandurra a4ef24b498 Merge pull request #2309 from zed-industries/suggestion-map
Introduce `DisplayMap::replace_suggestion`
2023-03-21 18:18:50 +01:00
Antonio ScandurraandMax Brunsfeld 3fddbd3e3d Don't move up/down by more rows than the requested ones
Co-Authored-By: Max Brunsfeld <max@zed.dev>
2023-03-21 17:52:53 +01:00
Antonio Scandurra 09bb0f131f Make Suggestion fields public 2023-03-21 16:51:33 +01:00
Antonio Scandurra 775e1b9bed Expose a DisplayMap::replace_suggestion method 2023-03-21 16:41:54 +01:00
Antonio Scandurra c197750411 Integrate SuggestionMap into the rest of DisplayMap 2023-03-21 16:39:02 +01:00
Antonio Scandurra 1a61ea2295 Add a version field to SuggestionSnapshot 2023-03-21 12:47:04 +01:00
Antonio Scandurra 585afd340e Extract a SuggestionMap::randomly_mutate method 2023-03-21 11:51:06 +01:00
Antonio Scandurra 8532f93bd8 Implement SuggestionSnapshot::to_{fold,suggestion}_point 2023-03-21 11:39:29 +01:00
Antonio Scandurra 4c0ae74607 Implement SuggestionSnapshot::to_point 2023-03-21 11:28:36 +01:00
Antonio Scandurra f73951495d Implement SuggestionSnapshot::to_offset 2023-03-21 11:28:33 +01:00
Antonio Scandurra a0b06cb196 Implement SuggestionSnapshot::text_summary_for_range 2023-03-21 11:28:30 +01:00
Antonio Scandurra 929a5cdf6a Implement SuggestionSnapshot::clip_point 2023-03-21 11:28:27 +01:00
Antonio Scandurra fbbfd60bd5 Implement SuggestionSnapshot::buffer_rows 2023-03-21 11:28:23 +01:00
Antonio Scandurra 0792c2501d Add unit test to verify basic properties of the SuggestionMap 2023-03-21 08:29:33 +01:00
Antonio ScandurraandMax Brunsfeld b1e5cca4c5 Implement SuggestionSnapshot::line_len
Co-Authored-By: Max Brunsfeld <max@zed.dev>
2023-03-20 19:45:39 +01:00
Antonio ScandurraandMax Brunsfeld 934978471d Enhance randomized test to verify SuggestionMap::{chunks,sync}
Co-Authored-By: Max Brunsfeld <max@zed.dev>
2023-03-20 19:29:22 +01:00
Antonio Scandurra bf4656198a WIP: Flesh out more of the suggestions randomized test 2023-03-20 18:06:24 +01:00
Petros Amoiridis f3abdd94f6 Merge pull request #2282 from zed-industries/petros/z-283-make-pop-up-positioning-consistent
Consistent pop-up menu positions
2023-03-20 17:55:40 +02:00
Petros AmoiridisandJulia 12bcf7cb54 Position pane new, split, and dock context menus
Co-Authored-By: Julia <30666851+ForLoveOfCats@users.noreply.github.com>
2023-03-20 17:49:33 +02:00
Nathan Sobo b829408a26 Merge pull request #2308 from zed-industries/feedback-icon
Use an envelope as the feedback icon so we can use the speech bubble for discussions
2023-03-20 09:14:34 -06:00
Nathan Sobo 01a2484955 Use an envelope as the feedback icon
This makes room to use the speech bubble for discussion threads.
2023-03-20 09:04:30 -06:00
Antonio Scandurra 5223d4c8ab Start on randomized test and add SuggestionMapSnapshot::chunks 2023-03-20 15:56:15 +01:00
Antonio Scandurra 9e983c9561 Simplify signature of SuggestionMap::replace 2023-03-20 14:00:14 +01:00
Antonio Scandurra db329dc3bc Add SuggestionMap::replace 2023-03-20 13:50:14 +01:00
Antonio Scandurra 7473beca88 Start on SuggestionMap 2023-03-20 13:22:14 +01:00
Mikayla Maki 0a767376f9 Merge pull request #2307 from zed-industries/fix-panic-in-editor-tab-content
Do UTF8-aware truncation on long item names in editor item
2023-03-18 15:49:06 -07:00
Mikayla Maki d7f4a15251 Do UTF8-aware truncation on long item names in editor item 2023-03-18 15:44:23 -07:00
Mikayla Maki 17c20e0684 Merge pull request #2287 from zed-industries/fix-fold-range-finding
Fix code folds with wraps
2023-03-17 17:18:56 -07:00
Mikayla Maki 62956ad0a3 Make folds tab aware 2023-03-17 17:14:40 -07:00
Mikayla Makiandmax 4a5337e031 Fix boundary condition in buffer_line_len when at the end of a file
co-authored-by: max <max@zed.dev>
2023-03-17 16:56:44 -07:00
Mikayla Maki 333117bd12 Merge pull request #2302 from zed-industries/fix-dispatch-path-panic
Align dispatch_keystroke with other uses of ancestors iterator
2023-03-17 16:34:00 -07:00
Mikayla Maki efe9e622ee Parse user enviroment using null terminators instead of newlines 2023-03-17 16:14:07 -07:00
Mikayla MakiandMax 4d4c4ac837 Fix fold tests with new representation
Switch UI code from using display rows to using buffer rows
Make folds only show up on lines with line layouts

co-authored-by: Max <max@zed.dev>
2023-03-17 16:00:22 -07:00
Max Brunsfeld a5bce4fc7e collab 0.8.2 2023-03-17 15:00:31 -07:00
Max Brunsfeld 0c129427c7 Merge pull request #2305 from zed-industries/faster-access-token-validation
Faster access token validation
2023-03-17 14:56:30 -07:00
Max BrunsfeldandMikayla Maki 1e3f3b5cfa Add logging and metric for time spent hashing auth tokens
Co-authored-by: Mikayla Maki <mikayla@zed.dev>
2023-03-17 14:32:13 -07:00
Max BrunsfeldandMikayla Maki 721c1cc9f3 Reduce scrypt work factor to speed up websocket authentication
Co-authored-by: Mikayla Maki <mikayla@zed.dev>
2023-03-17 14:31:39 -07:00
Max BrunsfeldandAntonio Scandurra 9d604c0573 Return a 400, not a 500 when token validation fails
Co-authored-by: Antonio Scandurra <antonio@zed.dev>
2023-03-17 13:56:12 -07:00
Mikayla Maki 564d128f0c Show active buffer language in all cases 2023-03-17 11:34:17 -07:00
Max BrunsfeldandAntonio Scandurra 2c2bcf87f0 Lookup access tokens by id when authenticating a connection
This avoids the cost of hashing an access token multiple times,
to compare it to all known access tokens for a given user.

Co-authored-by: Antonio Scandurra <antonio@zed.dev>
2023-03-17 11:13:50 -07:00
Mikayla Maki f4011d194c Align dispatch_keystroke with other uses of ancestors iterator and filter out non-existant views 2023-03-17 11:07:10 -07:00
Mikayla Maki 14593185e5 Merge pull request #2301 from zed-industries/fix-file-finder-panic
Never call set_selected_index with an invalid index
2023-03-17 10:18:27 -07:00
Mikayla Maki 79bda60065 Never call set_selected_index with an invalid index 2023-03-17 09:32:01 -07:00
Antonio ScandurraandJulia Risley e2c6eaa335 Deserialize Theme directly into the heap to avoid stack overflow
Co-Authored-By: Julia Risley <julia@zed.dev>
2023-03-17 15:58:52 +01:00
Antonio ScandurraandJulia Risley 5022026012 Avoid storing fonts::Features in TextStyle
We were only using it for debugging purposes and that was causing
the `Theme` struct to become too big to hold on the stack.

Co-Authored-By: Julia Risley <julia@zed.dev>
2023-03-17 15:12:02 +01:00
Antonio Scandurra 3d6ac2ae58 Don't make fonts::Features Copy 2023-03-17 13:54:56 +01:00
Antonio Scandurra ad6c69fabc Honor more OpenType features 2023-03-17 13:40:00 +01:00
Petros Amoiridis b5cad96911 Position contacts and user menus
Using the new approach for consistency
2023-03-17 14:05:46 +02:00