Commit Graph
39175 Commits
Author SHA1 Message Date
Antonio Scandurra 938214a99b Start on a new project_symbols crate 2022-02-22 08:42:12 +01:00
Nathan Sobo 40d8a92597 Merge pull request #475 from zed-industries/filter-input
Don't insert input in editor when control keys are pressed
2022-02-21 18:32:53 -08:00
Nathan Sobo 3ddad9b085 Don't insert input in editor when control keys are pressed 2022-02-21 18:21:27 -07:00
Nathan Sobo 1f255b3e84 v0.16.0 2022-02-21 18:10:10 -07:00
Nathan Sobo 43036ed7b4 Merge pull request #459 from zed-industries/spurious-macro-errors
Download language servers dynamically on startup
2022-02-21 17:08:50 -08:00
Nathan Sobo 6ce19ad1a2 Log an error instead of panicking when there's no LSP download dir 2022-02-21 17:44:00 -07:00
Max BrunsfeldandNathan Sobo bdb3c462f4 Assign language server download directory on startup
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2022-02-21 16:23:38 -08:00
Max BrunsfeldandNathan Sobo 79a0d152a3 Show more information in lsp status bar item
* Distinguish between checking for updates and downloading
* Show dismissable error message when downloading failed and there
  is no cached server.

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2022-02-21 16:11:51 -08:00
Max BrunsfeldandNathan Sobo c9a4d76f2d Download language servers on-demand
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2022-02-21 13:54:52 -08:00
e92573c8d0 Don't offset text vertically with gutter margin
Fixes #467

Co-Authored-By: Antonio Scandurra <me@as-cii.com>
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2022-02-21 11:41:46 -07:00
Nathan Sobo fbbf89fac2 Merge pull request #457 from zed-industries/find-improvements
Find improvements
2022-02-21 10:34:49 -08:00
Antonio Scandurra 82163040dd Revert "Temporarily allow uploading artifacts on all branches"
This reverts commit cb6c571548.
2022-02-21 18:04:29 +01:00
Antonio Scandurra d30399e056 Remove unused method 2022-02-21 17:31:43 +01:00
Antonio ScandurraandNathan Sobo 6149e8c4cb Remove rust-analyzer smoke test
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2022-02-21 17:28:55 +01:00
Antonio ScandurraandNathan Sobo ec875ff474 Show message indicating when we're downloading language servers
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2022-02-21 17:25:52 +01:00
Antonio ScandurraandNathan Sobo d7d78b8917 Use a Shared future to represent started language servers
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2022-02-21 17:04:47 +01:00
Antonio Scandurra 5967d87885 Download rust-analyzer from GitHub 2022-02-21 16:15:54 +01:00
Antonio Scandurra 6a7a19039c Introduce LspPostProcessor::download_language_server 2022-02-21 09:46:18 +01:00
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 cb6c571548 Temporarily allow uploading artifacts on all branches 2022-02-20 10:57:00 +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 BrunsfeldandNathan 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 304b1a771d Merge pull request #456 from zed-industries/farewell-inconsolata
Replace Inconsolata with Zed Mono and Zed Sans
2022-02-18 17:19:56 +01: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
Antonio Scandurra e740f4f5aa Merge pull request #454 from zed-industries/easier-element-states
Automatically include current view id in element state ids
2022-02-18 09:09:10 +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