Antonio Scandurra
ede6adbe76
Make language server initialization asynchronous
2022-02-21 09:39:28 +01:00
Antonio Scandurra
1980656679
Revert "WIP: avoid code-signing rust-analyzer to prevent proc macro errors"
...
This reverts commit a7160ed278 .
2022-02-21 08:13:05 +01:00
Antonio Scandurra
a7160ed278
WIP: avoid code-signing rust-analyzer to prevent proc macro errors
...
If this works, I think we should set the permissions asynchronously,
maybe as part of starting the language server, so that we avoid doing
synchronous I/O.
2022-02-20 12:14:43 +01:00
Antonio Scandurra
c17dd8386f
Merge pull request #455 from zed-industries/rename
...
Introduce rename support via `F2`
2022-02-19 11:07:39 +01:00
Antonio Scandurra
751ffccf60
Simplify undo_to_transaction and redo_to_transaction
...
We don't need to mutate the history anymore now that we render pending renames
with a block decoration.
2022-02-19 10:52:21 +01:00
Max Brunsfeld
7a269e5348
Ensure we never leak block decorations when renaming
2022-02-18 17:00:57 -08:00
Max Brunsfeld
7820c54d68
Handle GetDefinition via LspCommand trait
2022-02-18 16:45:52 -08:00
Max Brunsfeld
5a7f2f107c
Use async_trait for LspCommand
2022-02-18 16:07:30 -08:00
Max Brunsfeld
d74d3f61a6
Tweak behavior of selections when renaming
2022-02-18 15:44:57 -08:00
Max Brunsfeld and Nathan Sobo
9ad5af89f4
Use a block decoration for entering rename text
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-02-18 13:51:43 -08:00
Antonio Scandurra
f49935670f
WIP
2022-02-18 10:47:22 -08:00
Max Brunsfeld
145d74c4ef
Refactor handling of remote renames
2022-02-18 10:45:06 -08:00
Antonio Scandurra
bf4657bc4c
Allow matching on active editor's stale results if find is slow
2022-02-18 17:01:22 +01:00
Antonio Scandurra
f0715cbd99
Select closest match when find query changes
2022-02-18 16:45:59 +01:00
Antonio Scandurra
5398963064
Allow going to next/prev match even if FindBar has been dismissed
2022-02-18 16:33:26 +01:00
Antonio Scandurra
3588de1958
Notify toolbars if active item changes independently of visibility
2022-02-18 16:31:52 +01:00
Antonio Scandurra
0049bb181c
Cancel pending rename when hitting escape
2022-02-18 15:24:24 +01:00
Antonio Scandurra
887c7d23e1
Load only Zed Sans when building test AppState
2022-02-18 15:22:13 +01:00
Antonio Scandurra
099f4fab72
Replace Inconsolata with Zed Mono and Zed Sans
2022-02-18 14:55:11 +01:00
Antonio Scandurra
ec0f30aa28
Fix warning
2022-02-18 12:21:24 +01:00
Antonio Scandurra
cdcf1f3751
Use theme to highlight in-progress rename
2022-02-18 12:20:59 +01:00
Antonio Scandurra
e60b62f45f
Add test for preparing and performing a rename
2022-02-18 12:18:01 +01:00
Antonio Scandurra
7a72d7aed7
Undo temporary edits before performing rename or canceling it
...
Also, wire up remote renames.
2022-02-18 11:41:47 +01:00
Antonio Scandurra
f6e7347138
Merge branch 'main' into rename
2022-02-18 09:11:05 +01:00
Max Brunsfeld
a40938e1ca
Start work on renames
2022-02-17 18:01:07 -08:00
Max Brunsfeld
0da0b2611e
Automatically include current view id in element state ids
2022-02-17 13:44:46 -08:00
Max Brunsfeld
c32ac6e6f9
0.15.2
2022-02-17 12:55:47 -08:00
Max Brunsfeld
a5951562df
Fix another non-unique id passed to a MouseEventHandler
2022-02-17 12:48:53 -08:00
Max Brunsfeld
9479826046
Convert some project tests to use FakeFs
...
Also, tweak some FakeFs methods to make them slightly more convenient.
2022-02-17 11:09:27 -08:00
Max Brunsfeld
ebaa68fa0d
0.15.1
2022-02-17 10:00:24 -08:00
Max Brunsfeld and Antonio Scandurra
705efeb013
Fix non-unique ids passed to MouseEventHandlers
...
Co-Authored-By: Antonio Scandurra <me@as-cii.com >
2022-02-17 09:44:02 -08:00
Antonio Scandurra
7c54cd515f
Make completion unit test on editor more resilient
2022-02-17 17:30:10 +01:00
Antonio Scandurra
c0d1e77c21
Fix warnings
2022-02-17 17:26:03 +01:00
Antonio Scandurra
fe8ef9e96d
Use a fake database in tests
2022-02-17 17:04:04 +01:00
Antonio Scandurra and Nathan Sobo
bd04ebf421
Avoid parsing in randomized collaboration integration test
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-02-17 15:17:15 +01:00
Antonio Scandurra and Nathan Sobo
960dff5dc9
Use the lowest zstd compression level during tests
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-02-17 15:16:51 +01:00
Antonio Scandurra
0b5c6ea0fd
Wait for version before returning code actions
2022-02-17 14:46:26 +01:00
Antonio Scandurra
fac5959ac2
Wait for version before returning completions
2022-02-17 11:41:19 +01:00
Antonio Scandurra
f2881b5030
Avoid stalling server when test notifications aren't being processed
2022-02-17 10:38:56 +01:00
Antonio Scandurra
6016d827f2
Randomly detach requests on guest to let them race with other local ops
2022-02-17 09:05:06 +01:00
Max Brunsfeld and Nathan Sobo
258542b74a
Remove unnecessary waiting when handling save RPC requests
...
Add saving to the randomized integration test
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-02-16 17:47:21 -08:00
Max Brunsfeld and Nathan Sobo
e26a1e433c
Remove waiting for edits when handling code action RPC requests
...
Add code actions to the randomized integration test
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-02-16 17:34:23 -08:00
Max Brunsfeld and Nathan Sobo
529e18978e
Remove unnecessary waiting during completion RPC requests
...
Also, add completion requests to the randomized collaboration integration test,
to demonstrate that this is valid.
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-02-16 17:23:16 -08:00
Max Brunsfeld and Nathan Sobo
f3e70f32ac
Allow FakeLanguageServer handlers to handle multiple requests
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-02-16 16:19:27 -08:00
Max Brunsfeld and Nathan Sobo
90e4622ec7
Allow multiple fake language servers to be started for a given project
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-02-16 16:10:36 -08:00
Max Brunsfeld
5fb15676ec
Fix chat channel unit test
...
Also, improve error in tests when FakeServer never receives a request,
using the new `start_waiting` method on the DeterministicExecutor.
2022-02-16 13:54:00 -08:00
Max Brunsfeld
380d36e128
Fix duplicate element_state error in tests
2022-02-16 13:52:41 -08:00
Max Brunsfeld and Nathan Sobo
b656ff841c
Avoid storing operations when no buffers are being loaded
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-02-16 11:54:49 -08:00
Max Brunsfeld and Nathan Sobo
9058a71783
In random collaboration test, compare all guests' buffers to the host's buffers
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-02-16 11:31:53 -08:00
Max Brunsfeld and Antonio Scandurra
905c66d153
Restore synchronization between responses and incoming messages
...
This removes the need to buffer pending messages in Client.
Co-Authored-By: Antonio Scandurra <me@as-cii.com >
2022-02-16 10:28:32 -08:00