Commit Graph
25009 Commits
Author SHA1 Message Date
Antonio ScandurraandNathan Sobo 70278e995d Make BlockMap randomized test pass in low-complexity cases
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-11-15 16:47:30 +01:00
Antonio ScandurraandNathan Sobo 123d103d9e Make BlockMap unit test pass with 2d coordinates
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-11-15 16:30:58 +01:00
Nathan Sobo 3755612f17 WIP 2021-11-14 16:24:40 -07:00
Nathan Sobo 97ba91ad61 WIP: Start moving BlockMap to a 2d indexing scheme 2021-11-14 08:29:41 -07:00
Nathan Sobo 1dca403f89 Hack: Synthesize a newline before blocks below the last line of the buffer 2021-11-14 07:43:35 -07:00
Nathan Sobo 4370447e98 Account for trailing below blocks in BlockSnapshot::max_point 2021-11-13 19:50:42 -07:00
Nathan Sobo 279e11b0a1 Fix BlockMap unit test by skipping below blocks when advancing transforms 2021-11-13 18:19:21 -07:00
Nathan Sobo ca47e73743 Start on BlockSnapshot::clip_point
Not sure it works yet. Ran into another failure in the unit tests.
2021-11-13 17:44:09 -07:00
Max Brunsfeld d714bf4fa0 wip - wiring up blockmap into displaymap 2021-11-12 17:29:09 -08:00
Max BrunsfeldandNathan Sobo fe771eb5f9 Make block insertion work in simple cases
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-11-12 16:40:01 -08:00
Max Brunsfeld d33cd94256 Fix compile errors 2021-11-12 13:55:47 -08:00
Nathan SoboandMax Brunsfeld cf88c4d226 Sketch an initial implementation for block_map::HighlightedChunks
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2021-11-12 14:51:25 -07:00
Max Brunsfeld 8bc352e0b7 wip 2021-11-12 12:09:35 -08:00
Max Brunsfeld c876cd43bd BlockMap WIP 2021-11-12 11:49:48 -08:00
Antonio ScandurraandMax Brunsfeld dbe4a6af87 Start on a randomized test for BlockMap
This is currently passing and ensures we maintain the input coordinate
space correctly.

Co-Authored-By: Max Brunsfeld <max@zed.dev>
2021-11-12 19:01:39 +01:00
Antonio Scandurra 5ed7738bdd Remove redundant code path in Patch::compose 2021-11-12 17:24:25 +01:00
Antonio Scandurra 709a392063 Maintain row edits since last sync in WrapMap 2021-11-12 17:05:49 +01:00
Antonio Scandurra 512280bfeb Add text manipulation facilities to Rope for test purposes 2021-11-12 17:02:51 +01:00
Antonio Scandurra 0dab92d2f6 Init env_logger in the editor crate for tests only 2021-11-12 17:01:57 +01:00
Antonio Scandurra aa98f147ba Use log::info instead of println in patch randomized tests 2021-11-12 17:00:44 +01:00
Antonio Scandurra ed6d3561fb 🎨 2021-11-12 16:31:01 +01:00
Antonio Scandurra c0fd8eba6e Make Patch::compose work 2021-11-12 15:07:28 +01:00
Antonio Scandurra b01e3e0f74 Avoid composing edits together for now 2021-11-12 09:01:15 +01:00
Nathan Sobo 4f758e8f45 WIP 2021-11-12 00:20:39 -07:00
Nathan Sobo e3ca98dab3 wip 2021-11-12 00:03:47 -07:00
Nathan Sobo ab48ed0852 WIP 2021-11-11 23:28:45 -07:00
Max Brunsfeld 56cd64ee24 Simplify assertions in randomized patch test, fix some patch bugs 2021-11-11 18:28:07 -08:00
Max BrunsfeldandNathan Sobo 75a7d052ee Add patch unit tests, get composition working for ops <= 3
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-11-11 17:36:30 -08:00
Antonio Scandurra 790bbcd2a4 WIP 2021-11-11 19:49:01 +01:00
Antonio Scandurra ce6602a8f6 WIP 2021-11-11 19:42:55 +01:00
Antonio Scandurra 48312c0dee WIP 2021-11-11 18:13:35 +01:00
Antonio ScandurraandNathan Sobo f22d9a3de4 WIP
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-11-11 16:52:14 +01:00
Antonio ScandurraandNathan Sobo b943003490 WIP
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-11-11 16:00:52 +01:00
Antonio ScandurraandNathan Sobo ada905a9d0 WIP: Start on BlockMap
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-11-11 15:04:39 +01:00
Antonio Scandurra 83b625063e WIP 2021-11-11 15:04:31 +01:00
Nathan Sobo 8d8a710dbf WIP: Rework injection map to be focused solely on block injections 2021-11-10 20:49:06 -07:00
Nathan Sobo ee2ea9432a WIP: Probably the wrong direction 2021-11-10 17:44:56 -07:00
Nathan Sobo a7d6c4f848 WIP 2021-11-10 14:00:51 -07:00
Nathan Sobo cff326ff2a Fix path to templates that's used when minifying tailwind CSS 2021-11-07 07:32:26 -07:00
Nathan Sobo 32ed2361b7 Upgrade builder image to Rust 1.56 2021-11-06 22:10:27 -06:00
Max Brunsfeld 7ac40dfb6a Add missing group_id fields in rpc test 2021-11-04 17:34:33 -07:00
Antonio ScandurraandNathan Sobo 33e4f8f6c3 Allow querying a diagnostic group by its id
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-11-04 15:16:59 +01:00
Antonio ScandurraandNathan Sobo a8f60a10e1 Assign diagnostics a group_id based on their related_information
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-11-04 14:52:34 +01:00
Max Brunsfeld c24ab2c83e Merge pull request #222 from zed-industries/fix-hover-beachball
Give the MouseEventHandlers for each tab bar their own id
2021-11-03 19:38:04 -07:00
Max BrunsfeldandNathan Sobo 1e6c3036a2 Fix paths to server crate in scripts and gitignore
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-11-03 19:22:00 -07:00
Nathan Sobo 4368f3717e Give the MouseEventHandlers for each tab bar their own id
This fixes a beachball where we oscillate back and forth between hovered and unhovered due to confusing two different tab bars as the same tab bar.
2021-11-03 19:15:55 -06:00
Nathan Sobo cdb530c692 Start on a test for grouped diagnostics 2021-11-03 18:47:18 -06:00
Nathan SoboandMax Brunsfeld 477a62619d Only show the first line of diagnostic messages in the status bar
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2021-11-03 16:52:32 -06:00
Nathan Sobo 4a9dc8fc21 Merge pull request #221 from zed-industries/status-bar-errors
Add a status bar that shows the cursor position and the error under the cursor
2021-11-03 15:46:33 -06:00
Max Brunsfeld 3f8585cb2d Improve styling of diagnostic status bar item 2021-11-03 14:15:22 -07:00