Antonio Scandurra
4ddcac081c
Add unit test for ViewContext::observe_window_activation
2022-07-05 17:51:01 +02:00
Antonio Scandurra
57d6cb29b4
Honor Autosave setting in Editor
2022-07-05 17:51:01 +02:00
Antonio Scandurra
7eeea94830
Add ViewContext::observe_window_activation
2022-07-05 17:51:01 +02:00
Antonio Scandurra
47b1b9da33
Fix unsafe memory access when converting entity handles
2022-07-05 17:50:57 +02:00
Antonio Scandurra
b0ecd7d483
Introduce a new, language-overridable Autosave setting
2022-07-05 09:25:22 +02:00
Antonio Scandurra
1b9c64a905
Merge pull request #1278 from zed-industries/sync-line-ending
...
Transmit new line ending when buffer is reloaded
2022-07-05 08:07:38 +02:00
Antonio Scandurra
a90a086c3e
Transmit new line ending when buffer is reloaded
2022-07-05 08:01:14 +02:00
Max Brunsfeld
37e024b5c1
Merge pull request #1277 from zed-industries/scale-factor-change
...
Recalculate Metal layer's drawable size when window's scale factor changes
2022-07-04 15:21:44 -07:00
Max Brunsfeld
7b6d8b63f3
Recalculate Metal layer's drawable size when window's scale factor changes
2022-07-04 15:14:08 -07:00
Max Brunsfeld
81e74fa87f
Merge pull request #1276 from zed-industries/handle-carriage-returns
...
Handle files with CRLF (windows-style) line endings
2022-07-04 13:40:28 -07:00
Max Brunsfeld
abaa2837a3
Normalize line endings consistently between fake and real FS
2022-07-04 13:00:12 -07:00
Max Brunsfeld
bf20993000
Rename NewlineStyle -> LineEnding
2022-07-04 12:47:40 -07:00
Max Brunsfeld
31ca4c5efa
Handle a file's line endings changing on disk
2022-07-04 12:30:28 -07:00
Max Brunsfeld
5001b64235
Move project tests into their own file
2022-07-04 12:00:15 -07:00
Max Brunsfeld
e9327e6e5e
Merge pull request #1275 from zed-industries/delete-autoclose-pair
...
Delete the autoclosing bracket when deleting the opening bracket
2022-07-04 10:57:06 -07:00
Max Brunsfeld
9a766d7087
Delete the autoclosing bracket when deleting the opening bracket
2022-07-04 10:46:35 -07:00
Antonio Scandurra
472b53db01
Ignore carriage returns when reloading buffer
2022-07-04 17:40:35 +02:00
Antonio Scandurra
f356219cd2
Detect buffer newline style and honor it when saving
2022-07-04 17:40:26 +02:00
Antonio Scandurra
c24e1a36ca
Replace \r and \r\n with \n when indexing text into the rope
2022-07-04 15:37:40 +02:00
Antonio Scandurra
559f205a94
Merge pull request #1274 from zed-industries/fix-enter-numpad
...
Support hitting enter on numpad
2022-07-04 10:08:47 +02:00
Antonio Scandurra
24c9be0b07
Support hitting enter on numpad
2022-07-04 10:01:56 +02:00
Antonio Scandurra
85a67bf75e
Merge pull request #1262 from zed-industries/user-timeline
...
Improve user activity tracking
2022-07-04 09:28:40 +02:00
Antonio Scandurra
e8850d498c
Merge branch 'main' into user-timeline
2022-07-04 09:23:16 +02:00
Antonio Scandurra
14c0ee093e
Merge pull request #1265 from zed-industries/worktree-performance
...
Fix problems that arise when large numbers of files change on disk
2022-07-04 09:19:18 +02:00
Antonio Scandurra
59c88c0848
Don't poll snapshot if processing events unless user manually changed fs
2022-07-04 08:10:31 +02:00
Keith Simmons
570d69ee5a
Highlight matching bracket when newest selection head is on a bracket
2022-07-01 15:06:16 -07:00
Mikayla Maki
7c9fe49962
Merge pull request #1269 from zed-industries/terminal-fr
...
Update terminal to use the editor's cursor rendering and fix a couple bugs
2022-07-01 14:59:23 -07:00
Mikayla Maki
975793d8d5
Fixed cursor positioning bugs in multi-byte charcters. Still have at least one though :/
2022-07-01 14:53:19 -07:00
Mikayla Maki
7c8247b147
rendering cursor correctly
2022-07-01 13:03:26 -07:00
Mikayla Maki
d54bba005d
Fixed debug offset I added to terminal
2022-07-01 11:48:50 -07:00
Mikayla Maki
6c77025fae
Cleaned up debugging code
2022-07-01 11:39:43 -07:00
Mikayla Maki
bf0d0d155c
Checkpointing after some debugging
2022-07-01 11:38:12 -07:00
Keith Simmons
c1b3cc8d1f
Merge pull request #1266 from zed-industries/fix-zombie-ra
...
Fix Zombie Language Servers
2022-07-01 10:20:27 -07:00
Antonio Scandurra
6030446b67
Remove redundant calls to poll_snapshot
2022-07-01 14:40:39 +02:00
Antonio Scandurra
a241d82156
Grab latest snapshot when invoking LocalWorktree::poll_snapshot
2022-07-01 14:36:51 +02:00
Antonio Scandurra
a472da27df
🎨
2022-07-01 14:11:21 +02:00
Antonio Scandurra
d9fe8f56bc
Add simulate_random_delay to every implemented method in FakeDb
2022-07-01 12:05:29 +02:00
Antonio Scandurra
08b828696a
Ensure worktrees have been sent before responding with definitions
...
Changing the frequency at which we update worktrees highlighted a
problem in the randomized tests that was causing clients to receive
a definition to a worktree *before* observing the registration of
the worktree itself. This was most likely caused by #1224 because
the scenario that pull request enabled was the following:
- Guest requests a definition pointing to a non-existant worktree
- Server forwards the request to the host
- Host sends an `UpdateProject` message
- Host sends a response to the definition request
- Server observes the `UpdateProject` message and tries to acquire
the store
- Given that we're waiting, the server goes ahead to process the
response for the definition request, responding *before*
`UpdateProject` is forwarded
- Server finally forwards `UpdateProject` to the guest
This commit ensures that, after forwarding a project request and getting a
response, we acquire a lock to the store again to ensure the project still
exists. This has the effect of ordering the forwarded request *after* any
message that was received prior to the response and for which we are still
waiting to acquire a lock to the store.
2022-07-01 11:45:30 +02:00
Mikayla Maki
28d3f08bab
Rebasing onto master
2022-06-30 20:44:51 -07:00
Mikayla Maki
a3d873b15d
Fixed a major bug and now use the same cursor paint logic as the editor
2022-06-30 20:43:51 -07:00
Mikayla Maki
59ab315e6e
Fixed a major bug and now use the same cursor paint logic as the editor
2022-06-30 20:34:06 -07:00
Mikayla Maki
eb9aaac05e
Update terminal.rs
...
Whoopsies
2022-06-30 20:30:52 -07:00
Mikayla Maki
1645b28207
Merge pull request #1267 from zed-industries/terminal-fr
...
This pull request is small and doesn't include many changes to any existing functionality. In the interest of removing blockers ASAP, I will merge.
2022-06-30 20:12:08 -07:00
Mikayla Maki
a44bb3735a
Refactored and commented code to be my expressive
2022-06-30 20:02:16 -07:00
Mikayla Maki
ccf6030e5a
Fully functional background colors :D
2022-06-30 19:21:42 -07:00
Keith Simmons
c5e9c15115
Restart language server using original root path rather than the path of the buffer restarted from
2022-06-30 19:11:21 -07:00
Max Brunsfeld
3e742d4acb
WIP - try representing snapshots_to_send as a watch
2022-06-30 18:04:31 -07:00
Keith Simmons
bc2362e330
Clear language server id for all worktrees when stopping a language server
2022-06-30 17:50:30 -07:00
Keith Simmons
b806797b0a
Fix failing test due to change in stop_language_server function
2022-06-30 17:40:50 -07:00
Keith Simmons
2ded6ce4ff
add assertion to test_definition ensuring no new language servers are created
2022-06-30 17:24:32 -07:00