Commit Graph
39175 Commits
Author SHA1 Message Date
3353d919ac Mainline GPUI2 UI work (#3079)
This PR mainlines the current state of new GPUI2-based UI from the
`gpui2-ui` branch.

Release Notes:

- N/A

---------

Co-authored-by: Nate Butler <iamnbutler@gmail.com>
Co-authored-by: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com>
Co-authored-by: Nate <nate@zed.dev>
2023-10-02 18:20:47 -04:00
Marshall Bowers bef81efe1f Fix deadlock when obtaining the font ID 2023-10-02 16:10:41 -04:00
Nathan Sobo ad0f637082 WIP 2023-10-02 14:02:28 -06:00
Nathan Sobo b35a03041a Checkpoint 2023-10-02 13:34:07 -06:00
Nathan Sobo c5e3f1d8a9 Checkpoint 2023-10-02 13:16:10 -06:00
Nathan Sobo 9f590451aa Checkpoint 2023-10-02 12:47:45 -06:00
Julia 041f754188 Detach completion confirmation task when selecting with mouse (#3078)
Otherwise the spawn to resolve the additional edits never runs causing
autocomplete to never add imports automatically when clicking with the
mouse

Release Notes:

- Fixed auto-complete additional edits, such as auto-import, not
applying when selecting a completion with a mouse click.
2023-10-02 13:32:06 -04:00
Julia 83f32c91a3 Detach completion confirmation task when selecting with mouse
Otherwise the spawn to resolve the additional edits never runs causing
autocomplete to never add imports automatically when clicking with the
mouse
2023-10-02 13:18:49 -04:00
Conrad Irwin 88c5b7ce75 Remove unused function 2023-10-02 11:03:55 -06:00
Conrad Irwin 19bb02c50e Ensure notifications are dismissed
Before this change if you joined a project without clicking on the
notification it would never disappear.

Fix a related bug where if you have more than one monitor, the
notification was only dismissed from one of them.
2023-10-02 11:01:21 -06:00
KCaverly 7219206f35 add placeholder button for retrieving additional context 2023-10-02 19:50:57 +03:00
KCaverly 2ff420c7f6 searching the semantic index, and passing returned snippets to prompt generation 2023-10-02 19:15:59 +03:00
Conrad Irwin 5b30778967 Add a screen for gpui tests
Allows me to test notifications
2023-10-02 09:53:30 -06:00
Antonio Scandurra 70fca360bb Sort matches before processing them 2023-10-02 17:50:52 +02:00
Antonio Scandurra 0029a1e25f Summarize file in the background 2023-10-02 15:36:10 +02:00
Piotr Osiewicz f3dcf513cb auto-update: Link to the current release's changelog, not the latest one (#3076)
An user complained in zed-industries/community#2093 that we always link
to the latest release changelog, not the one that they've just updated
to.


Release Notes:
- Fixed changelog link in update notification always leading to the
latest release changelog, not the one that was updated to. Fixes
zed-industries/community#2093.
2023-10-02 15:24:09 +02:00
Antonio Scandurra de3f08b74f Prevent deploying the inline assistant when selection spans multiple excerpts 2023-10-02 15:21:58 +02:00
Antonio Scandurra c4fd3cc832 💄 2023-10-02 14:36:16 +02:00
Antonio Scandurra a1cc8b5dce Summarize the contents of a file using the embedding query 2023-10-02 14:32:13 +02:00
Mikayla 03777676aa Implement channel changes for messages 2023-10-01 22:32:11 -07:00
Mikayla ec0d8fe1ba Add database implementation of channel message change tracking 2023-10-01 22:32:11 -07:00
Mikayla 30ae808ce1 Add channel note indicator and clear changed status 2023-10-01 22:32:10 -07:00
Mikayla 2a02ec0b87 Channel notifications from the server works 2023-10-01 22:30:21 -07:00
Mikayla 09289bb995 Add observed_channel_notes table and implement note diffing 2023-10-01 22:26:27 -07:00
Joseph T. Lyons a6d5a4b1a1 Add Nushell support to venv activation (#3073)
This PR adds an option to run `activate.nu` in the automatic venv
activation code (relevant comment
[here](https://github.com/zed-industries/community/issues/2103#issuecomment-1742355651))

Release Notes:

- Added a `nushell` option to the
`terminal.detect_venv.on.activate_script` setting
([2103](https://github.com/zed-industries/community/issues/2103)).
2023-10-01 23:55:57 -04:00
Joseph T. Lyons 07cbcd9cb5 Add Nushell support to venv activation 2023-10-01 23:38:30 -04:00
Nathan Sobo ca8eb9e4f7 WIP 2023-09-30 10:01:59 -06:00
Nathan Sobo 2abd4ae4cc Fix infinite loop 2023-09-30 09:43:52 -06:00
Marshall Bowers 7f1595f5fb Checkpoint: Things are running, but with a stack overflow 2023-09-29 22:57:17 -04:00
Marshall Bowers d06cb345dd Checkpoint: Fix downcasting 2023-09-29 22:53:24 -04:00
Marshall Bowers 20843de5fc Adjust window dimensions
Since resizing freezes the window.
2023-09-29 21:55:34 -04:00
Marshall Bowers 9fc761a50e Checkpoint: Storybook window showing 2023-09-29 21:51:27 -04:00
Marshall Bowers 58563f9ef8 Fix stack overflow by removing Deref and DerefMut impls 2023-09-29 21:21:08 -04:00
Marshall Bowers 9ed2eb98cb Checkpoint: Compiling 2023-09-29 20:51:52 -04:00
Conrad IrwinandMax Brunsfeld a53a022583 Make following more good
Co-Authored-By: Max Brunsfeld <max@zed.dev>
2023-09-29 17:59:19 -06:00
Marshall Bowers 8616c1c177 Checkpoint: Cast through std::mem::transmute 2023-09-29 19:41:31 -04:00
Marshall Bowers 27a498ad45 WIP: Parameterize over thread 2023-09-29 19:20:18 -04:00
Conrad IrwinandMax Brunsfeld 7cda6fa956 Show host in titlebar
Co-Authored-By: Max Brunsfeld <max@zed.dev>
2023-09-29 16:37:00 -06:00
Conrad Irwin e67177d0b6 More logging on collab by default 2023-09-29 16:37:00 -06:00
Max Brunsfeld 322da5d8d4 Allow following participants who aren't in the same project (#2993)
The goal of this PR is to make Following more intuitive.

### Old Behavior

Previously, following was scoped to a project. In order to follow
someone in a given window, the window needed to contain a shared
project, and the leader needed to be present in the project. Otherwise,
following failed.

### New Behavior

* You can always follow **any** participant in the current call, in any
pane of any window.
* When following someone in a project that you're both collaborating in,
it works the same as before.
* When following someone in an unshared project, or a project that they
don't have open, you'll only get updates about the leader's views that
don't belong to a project, such as channel notes views. When the leader
focuses a file in a different project, you'll get the "follow $LEADER to
their active project" indicator

### Todo

* [x] Change db schema and RPC protocol so a project id isn't required
for following
* [x] Change client to allow following into non-project items regardless
of the leader's project
* [x] Assign colors to users in a way that doesn't require users to be
in a shared project.
2023-09-29 15:18:05 -07:00
Max Brunsfeld 3590da0c16 Show current user as follower when following in unshared projects 2023-09-29 15:08:25 -07:00
Max Brunsfeld f0d5356ad9 Fix active view update when center pane is not focused 2023-09-29 14:37:28 -07:00
Mikayla Maki 4f7af645e1 Refactor elixir LSP settings (#3071)
This PR is a bit of a last minute change, but I realized there was
actually a third player in the Elixir LSP space who wants support as
well,
[lexical](https://github.com/zed-industries/community/issues/1567). I
realized that the settings arrangement I shipped in this preview
precludes adding a third kind of LSP. I don't have the time to learn how
to fully support this LSP, but I thought I'd at least refactor how the
settings are represented before this hits stable.

Release Notes:

- Changed the new `"elixir": { "next": "on" }` setting to `"elixir": {
"lsp": "next_ls" }`. The `elixir.lsp` setting requires a full restart to
take effect. (Preview only)
2023-09-29 14:25:05 -07:00
Max Brunsfeld d7eea1c383 Switch .leader_replica_id -> .leader_peer_id 2023-09-29 14:16:38 -07:00
Max Brunsfeld f5459e071e Merge branch 'main' into allow-following-outside-of-projects 2023-09-29 14:15:33 -07:00
Max Brunsfeld 8911694c15 Update active view when activating a window 2023-09-29 14:12:51 -07:00
Mikayla f6e1b47202 Refactor elixir LSP settings 2023-09-29 14:12:50 -07:00
Max Brunsfeld 951ba848a2 Fix bug in follower updates for non-project items 2023-09-29 14:09:14 -07:00
Max Brunsfeld c8dc666de8 Add ZED_ALWAYS_ACTIVE env var, use it in local collaboration script
This makes zed always behave as if the app is active, even if no window is focused.
It prevents the 'viewing a window outside of zed' state during collaboration.
2023-09-29 13:43:43 -07:00
Nathan Sobo e007864db7 WIP 2023-09-29 14:34:40 -06:00