Max Brunsfeld
204c900aa0
Only expand tabs up until a limited column
2023-03-28 16:40:04 -07:00
Max Brunsfeld
ae03435253
🎨 Make expand_tabs and collapse_tabs instance methods on TabSnapshot
2023-03-28 14:10:43 -07:00
Antonio Scandurra
e4fbc1ab51
Optimize CopilotState::text_for_active_completion
2023-03-28 09:42:01 -07:00
Antonio Scandurra and Mikayla Maki
597af5e4ed
Refresh copilot suggestions when hitting alt-] if none are showing
...
Co-Authored-By: Mikayla Maki <mikayla@zed.dev >
2023-03-28 09:42:01 -07:00
Antonio Scandurra and Mikayla Maki
9a7bc22a9c
Clear copilot suggestions when hitting escape
...
Co-Authored-By: Mikayla Maki <mikayla@zed.dev >
2023-03-28 09:42:01 -07:00
Antonio Scandurra
e4ecd2aad5
Reuse existing suggestion when inserting to avoid flickering
2023-03-28 09:42:01 -07:00
Antonio Scandurra
27a5454aee
Rework SuggestionMap to take highlight style when retrieving chunks
2023-03-28 09:42:01 -07:00
Antonio Scandurra
97dfcfe905
Replace editor::CycleCopilotSuggestions with copilot::NextSuggestion
2023-03-28 09:42:01 -07:00
Antonio Scandurra
7ea3f89aa9
Start integrating Copilot with editor
...
There's still a bit to do in terms of reusing the previous suggestion
when the prefix matches, but we're getting there.
2023-03-28 09:42:01 -07:00
Antonio Scandurra
ba4c257b50
Use the same serde version across the entire workspace
2023-03-28 09:42:00 -07:00
Nathan Sobo
647b8c692b
Trim empty tokens; copy selected range if non-empty
2023-03-24 17:10:50 -06:00
Nathan Sobo
7e089b2aa5
Merge adjacent chunks with the same highlight name in copied JSON
2023-03-24 16:52:00 -06:00
Nathan Sobo
ab3131228a
Add "editor: copy highlight json" command
...
Nate needs this to feed to Figma for highlighted code in designs.
2023-03-24 16:37:57 -06:00
Max Brunsfeld
8e00ea4925
Merge branch 'main' into lsp-file-change-notifications
2023-03-24 08:52:43 -07:00
Mikayla Maki
7a8e097bd4
Update element.rs
...
remove spare parens
2023-03-22 17:05:54 -07:00
Mikayla Maki
8de4575b7c
Fix fold indicator offsets
2023-03-22 17:04:52 -07:00
Max Brunsfeld
0964a3d49f
Move postage crate version specification to workspace Cargo.toml
2023-03-21 11:26:13 -07:00
Antonio Scandurra and Max 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 Scandurra and Max Brunsfeld
b1e5cca4c5
Implement SuggestionSnapshot::line_len
...
Co-Authored-By: Max Brunsfeld <max@zed.dev >
2023-03-20 19:45:39 +01:00
Antonio Scandurra and Max 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
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 Maki and max
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 and Max
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
Antonio Scandurra and Julia 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 Scandurra and Julia 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
43b69145e8
Allow setting font features on the terminal as well
2023-03-17 11:42:24 +01:00
Antonio Scandurra
22cd32e1bc
WIP: Allow specifying font features in the editor
...
This just lays the foundation for threading through a `fonts::Features`
struct, but it's not used yet.
2023-03-17 09:51:36 +01:00
Mikayla Maki
39432e1a99
WIP - DEBUGGING
2023-03-16 08:41:19 -07:00
Mikayla Maki and max
7880297c84
Convert code folding to be in terms of buffer points instead of display points
...
Co-authored-by: max <max@zed.dev >
2023-03-14 16:48:03 -07:00