-
9e8ef31452
Return item handles when opening items
Nathan Sobo
2021-12-18 08:26:57 -07:00
-
ca0d7e5e1f
Add journal crate and move supporting logic into workspace crate
Nathan Sobo
2021-12-18 08:12:59 -07:00
-
cd65031cda
Halt keystroke dispatch immediately when we call a global action handler
Nathan Sobo
2021-12-18 08:12:08 -07:00
-
-
c41b958829
WIP - start restructuring collaboration around entire projects

Max BrunsfeldandNathan Sobo
2021-12-17 22:00:39 -08:00
-
88d663a253
Allow saving of all buffers contained in project diagnostics editor

Antonio ScandurraandNathan Sobo
2021-12-17 16:48:16 +01:00
-
f0fe346e15
Gracefully degrade
diagnostics_in_range, diagnostic_group and file

Antonio ScandurraandNathan Sobo
2021-12-17 16:37:12 +01:00
-
6685d5aa7d
Implement
MultiBuffer::save
Antonio Scandurra
2021-12-17 16:11:18 +01:00
-
7d2b74a93b
Implement
MultiBuffer::{is_dirty,has_conflict}
Antonio Scandurra
2021-12-17 15:33:09 +01:00
-
5f819b6edc
Implement
MultiBuffer::enclosing_bracket_ranges
Antonio Scandurra
2021-12-17 15:05:05 +01:00
-
c9cbc2fe1e
Implement
MultiBuffer::range_for_syntax_ancestor
Antonio Scandurra
2021-12-17 14:57:42 +01:00
-
a2ee38f37b
Make
MultiBuffer::is_parsing a test-only method
Antonio Scandurra
2021-12-17 14:57:24 +01:00
-
3914d1d072
Display filename on the first excerpt's header for a group
Antonio Scandurra
2021-12-17 13:49:21 +01:00
-
63f171200e
Enhance diagnostic unit test and correctly display primary diagnostic
Antonio Scandurra
2021-12-17 12:16:09 +01:00
-
528d64d3cc
WIP - Improve project diagnostic context rendering
Max Brunsfeld
2021-12-16 18:09:12 -08:00
-
fb492a9fb8
Correctly incorporate editor settings into diagnostic header rendering
Max Brunsfeld
2021-12-16 16:36:33 -08:00
-
ae147a379d
Don't terminate on an empty input chunk in
ExcerptChunks
Max Brunsfeld
2021-12-16 16:05:28 -08:00
-
31eeffa5a7
Autoscroll after inserting blocks
Max Brunsfeld
2021-12-16 14:20:01 -08:00
-
9cd4e5ba04
Transfer focus from ProjectDiagnostics view to its editor
Max Brunsfeld
2021-12-16 14:14:22 -08:00
-
6444fcd442
Integrate MultiBuffer::buffer_rows into the display map
Max Brunsfeld
2021-12-16 13:53:32 -08:00
-
db33e4935a
Implement MultiBuffer::buffer_rows
Max Brunsfeld
2021-12-16 12:17:47 -08:00
-
a293e9c0c5
Suppress unused field warnings
Max Brunsfeld
2021-12-16 11:17:06 -08:00
-
38df091b06
Fix up/down movement across excerpt headers
Max Brunsfeld
2021-12-16 11:16:48 -08:00
-
dcd05ef96b
Resolve Anchor::min and ::max to valid positions

Max BrunsfeldandAntonio Scandurra
2021-12-16 10:25:09 -08:00
-
80f3173fbd
Always panic if invalid point is passed to {prev,next}_row_boundary

Max BrunsfeldandAntonio Scandurra
2021-12-16 10:23:45 -08:00
-
0fc2db6d6e
Account for folds when inserting/removing block decorations
Antonio Scandurra
2021-12-16 16:15:48 +01:00
-
7660159164
Test blocks in display map randomized tests
Antonio Scandurra
2021-12-16 16:14:27 +01:00
-
de679cae78
Re-enable creating multiple blocks at once in
BlockMap tests
Antonio Scandurra
2021-12-16 12:41:48 +01:00
-
abf96e6ad6
Fix movement tests in
DisplayMap
Antonio Scandurra
2021-12-16 12:36:27 +01:00
-
64e2f6d506
Ensure
BlockMap::clip_point always yield a valid buffer location
Antonio Scandurra
2021-12-16 12:29:37 +01:00
-
ec39c9d335
Allow specifying
MAX_EXCERPTS via an env variable in random tests
Antonio Scandurra
2021-12-16 12:28:54 +01:00
-
3e2f684545
Fix prev_row_boundary when a wrap follows a fold

Max BrunsfeldandNathan Sobo
2021-12-15 18:30:09 -08:00
-
4c22774694
Always clip buffer points when clipping display points

Max BrunsfeldandNathan Sobo
2021-12-15 17:58:24 -08:00
-
f898dc6dae
Guard against inverted ranges when building edits in unfold
Max Brunsfeld
2021-12-15 17:29:15 -08:00
-
e8570b5c26
Allow multibuffer to clip to the ends of excerpts, before trailing newlines
Max Brunsfeld
2021-12-15 17:04:17 -08:00
-
f8ef605cbd
Update all MultiBuffer unit tests, removing expected trailing newline
Max Brunsfeld
2021-12-15 16:50:59 -08:00
-
f4115ddc3c
🎨 point_to_display_point & display_point_to_point
Max Brunsfeld
2021-12-15 15:45:02 -08:00
-
368b4447ff
Clip buffer points in DisplayMap::{prev,next}_row_boundary
Max Brunsfeld
2021-12-15 15:41:38 -08:00
-
2930ea8fb0
Fix handling of excerpts surrounded by edits in MultiBuffer::edit
Max Brunsfeld
2021-12-15 12:12:39 -08:00
-
4bea16eb31
Ensure muiltibuffer anchors are contained within their excerpt ranges


2021-12-15 10:52:27 -08:00
-
cec0c5912c
Create multiple excerpts in random BlockMap test


2021-12-15 10:21:11 -08:00
-
80abd84050
Create MultiBuffers with more than one fragment in more randomized tests


2021-12-15 18:38:37 +01:00
-
1bdaeda43e
Remove disk diagnostics that were invalidated by a buffer edit


2021-12-15 18:29:01 +01:00
-
4ab307f0a1
Re-enable multi-byte random character generation

Antonio ScandurraandNathan Sobo
2021-12-15 17:51:11 +01:00
-
5118f27a90
Overhaul
MultiBuffer::chunks

Antonio ScandurraandNathan Sobo
2021-12-15 17:22:04 +01:00
-
bcdb4ffd88
Allow edits at the end of
MultiBuffer

Antonio ScandurraandNathan Sobo
2021-12-15 16:45:01 +01:00
-
7bbaa1d930
Don't insert a newline after the last excerpt of a
MultiBuffer

Antonio ScandurraandNathan Sobo
2021-12-15 16:39:09 +01:00
-
ae0fa75abe
Start testing the integration of display layers with
MultiBuffers

Antonio ScandurraandNathan Sobo
2021-12-15 16:05:26 +01:00
-
59121a238a
Forward notifications from
Buffer in MultiBuffer

Antonio ScandurraandNathan Sobo
2021-12-15 15:07:42 +01:00
-
437145afbe
Remove assertion and don't consume 0 bytes

Nathan SoboandAntonio Scandurra
2021-12-15 06:52:37 -07:00
-
fbba417f09
Implement MultiBuffer::bytes_in_range

Nathan SoboandAntonio Scandurra
2021-12-15 06:49:10 -07:00
-
95137ecb2a
WIP
Antonio Scandurra
2021-12-15 13:20:11 +01:00
-
e23965e7c9
Implement
MultiBuffer::reversed_chars_at
Antonio Scandurra
2021-12-15 10:00:50 +01:00
-
9cbb680fb2
Fix panic on creation of a left-biased anchor at the end of MultiBuffer
Antonio Scandurra
2021-12-15 08:58:47 +01:00
-
7bcce23dc9
Fix compile error in server integration tests
Antonio Scandurra
2021-12-15 08:48:50 +01:00
-
6c5b27af1d
Group diagnostics by primary

Nathan SoboandMax Brunsfeld
2021-12-14 18:26:42 -07:00
-
e1a2897d53
Render basic diagnostic messages in project diagnostics view

Nathan SoboandMax Brunsfeld
2021-12-14 17:00:57 -07:00
-
ad05c0cc7a
Implement MultiBufferSnapshot::excerpt_headers_in_range

Nathan SoboandMax Brunsfeld
2021-12-14 16:24:48 -07:00
-
60e2c6bc52
Fix multibuffer anchors before the ends of excerpts
Max Brunsfeld
2021-12-14 13:37:05 -08:00
-
06e241117c
Fix assertions in test for selection restoration after undo/redo

Max BrunsfeldandNathan Sobo
2021-12-14 13:04:51 -08:00
-
e38c1814d5
Update selections on text insertion using anchors

Max BrunsfeldandNathan Sobo
2021-12-14 12:15:26 -08:00
-
4ed96bb5a6
Fix assertion in multibuffer history test


2021-12-14 11:47:22 -08:00
-
bf9daf1529
Allow left-biased anchors at the beginnings of excerpts

Max BrunsfeldandAntonio Scandurra
2021-12-14 09:58:28 -08:00
-
358a6ff66c
Implement
MultiBufferSnapshot::contains_str_at
Antonio Scandurra
2021-12-14 17:51:14 +01:00
-
08e9f3e1e3
Maintain a different undo/redo stack in
MultiBuffer
Antonio Scandurra
2021-12-14 17:43:41 +01:00
-
523cbe781b
Return the transaction id after grouping in
end_transaction_at

Antonio ScandurraandNathan Sobo
2021-12-14 17:39:40 +01:00
-
119d44caf7
Remove test-only
transaction_group_interval method from MultiBuffer
Antonio Scandurra
2021-12-14 14:17:33 +01:00
-
2d1ff8f606
Clip anchors created on MultiBuffer's trailing newlines or headers
Antonio Scandurra
2021-12-14 12:28:27 +01:00
-
1b67f19edc
Implement
MultiBuffer::set_active_selections
Antonio Scandurra
2021-12-14 12:13:19 +01:00
-
920daa8a8f
Remove stray log statement
Antonio Scandurra
2021-12-14 12:01:19 +01:00
-
163ce95171
Implement
MultiBufferSnapshot::remote_selections_in_range
Antonio Scandurra
2021-12-14 11:34:26 +01:00
-
174b37cdf0
Assume all excerpts in the multi buffer have the same language for now
Antonio Scandurra
2021-12-14 11:33:53 +01:00
-
04ffca95c6
Keep a separate diagnostic update count and parse count in MultiBuffer
Antonio Scandurra
2021-12-14 11:32:49 +01:00
-
9e15c57f91
Display a rudimentary project diagnostic view on
alt-shift-d
Antonio Scandurra
2021-12-14 11:32:05 +01:00
-
4efdc53d9f
WIP
Max Brunsfeld
2021-12-13 17:44:20 -08:00
-
0b1c27956b
Add Project::open_buffer method
Max Brunsfeld
2021-12-13 17:44:15 -08:00
-
fe571f1d70
Store diagnostic summaries on worktrees
Max Brunsfeld
2021-12-13 16:36:53 -08:00
-
6ab795c629
Handle buffer deduping in the worktree instead of in workspace
Max Brunsfeld
2021-12-13 16:35:32 -08:00
-
52b8e3d1a2
Get tests passing after diagnostic + selection changes

Max BrunsfeldandNathan Sobo
2021-12-13 11:34:56 -08:00
-
418a9a3d66
Get things compiling with diagnostics on worktree


2021-12-13 11:15:03 -08:00
-
85674ba506
WIP

Antonio ScandurraandNathan Sobo
2021-12-13 16:46:35 +01:00
-
6645e2820c
First attempt at implementing
MultiBuffer::edit_internal

Antonio ScandurraandNathan Sobo
2021-12-13 15:43:26 +01:00
-
c984b39aaa
Show remote collaborators' active selections
Antonio Scandurra
2021-12-13 11:38:38 +01:00
-
2adf11e204
Write a simple unit test for TreeMap and fix bug in
remove
Antonio Scandurra
2021-12-13 11:20:10 +01:00
-
cdbcbdfe6d
Test undo/redo at editor layer, including selection restoration
Nathan Sobo
2021-12-12 15:04:19 -07:00
-
44cd0be068
Restore selections upon undo/redo of edits performed in the current editor
Nathan Sobo
2021-12-12 14:12:03 -07:00
-
1e7184ea07
Get selections rendering again when local selections are owned by Editor
Nathan Sobo
2021-12-11 13:42:46 -07:00
-
4dd0752e80
More messy progress towards selections in editors
Nathan Sobo
2021-12-11 00:29:34 -07:00
-
0639c8331c
Relax TreeMap value bounds, fix warnings, simplify cmp
Nathan Sobo
2021-12-10 23:35:24 -07:00
-
49d1c9d1ba
Introduce sum_tree::TreeMap<K, V>
Nathan Sobo
2021-12-10 23:33:15 -07:00
-
f5c775fcd1
WIP
Nathan Sobo
2021-12-10 22:16:39 -07:00
-
8432daef6a
WIP: Start on removing selections from buffer in favor of editor
Nathan Sobo
2021-12-10 19:23:34 -07:00
-
f35c419f43
Return optional transaction ids from undo/redo
Nathan Sobo
2021-12-10 18:08:26 -07:00
-
77defe6e28
Return optional transaction ids when starting/ending a transaction
Nathan Sobo
2021-12-10 18:00:09 -07:00
-
c8b43e3078
Move multi_buffer to editor crate
Nathan Sobo
2021-12-10 17:37:53 -07:00
-
6caf016df9
Get tests passing w/ multibuffer in editor

Max BrunsfeldandNathan Sobo
2021-12-10 15:54:25 -08:00
-
75dd37d873
Update multibuffer when buffers' syntax trees or diagnostics change

Max BrunsfeldandNathan Sobo
2021-12-10 15:53:53 -08:00
-
ceff57d02f
Don't append a trailing newline in singleton MultiBuffer
Max Brunsfeld
2021-12-10 14:27:58 -08:00
-
a758bd4f8d
Fill in some missing methods on MultiBuffer, MultiBufferSnapshot
Max Brunsfeld
2021-12-10 12:58:32 -08:00
-
5b31c1ba4e
Start making
MultiBuffer work with a singleton buffer

Antonio ScandurraandNathan Sobo
2021-12-10 18:04:11 +01:00
-
7524974f19
Get everything compiling again

Antonio ScandurraandNathan Sobo
2021-12-10 17:15:16 +01:00