Commit Graph
25009 Commits
Author SHA1 Message Date
Mikayla Maki 6cf4693b01 Add audio APIs to Zed
Share mic on joining room
2023-06-16 10:13:27 -07:00
2d3d9d8b5e Avoid inserting redundant newlines
Co-Authored-By: Piotr Osiewicz <piotr@zed.dev>
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
2023-06-16 10:36:42 -06:00
Piotr Osiewicz 93cae41529 Emit editor event whether we insert a newline or not. 2023-06-16 13:29:12 +02:00
Piotr Osiewicz f0d1c9a053 Move share button to the right hand side 2023-06-15 22:05:43 -07:00
Piotr Osiewicz 015d2e98d6 Render user avatar only if an user is not in a call 2023-06-15 22:05:43 -07:00
Piotr Osiewicz aaeaec6862 Add background to user avatar 2023-06-15 22:05:43 -07:00
Piotr Osiewicz e1bc75e754 Add Sign in button for an unregistered user 2023-06-15 22:05:43 -07:00
Piotr Osiewicz e9f6830a16 Move zed actions to zed-actions 2023-06-15 22:05:43 -07:00
Piotr Osiewicz 0ef79fa349 add zed-actions crate 2023-06-15 22:05:43 -07:00
Piotr Osiewicz 891df6b80f Remove user avatar from dropdown menu
Add new options in context menu
2023-06-15 22:05:43 -07:00
Piotr Osiewicz c45349c4a6 Fix compile error (use of moved value) 2023-06-15 22:05:43 -07:00
Mikayla Maki ca980c1d18 WIP: Add face to right hand menu 2023-06-15 22:05:43 -07:00
Mikayla Maki 06d80b0ae2 Remove border from sign in button
Co-authored-by: Piotr <piotr@zed.dev>
2023-06-15 22:05:43 -07:00
Mikayla Maki bfc22db18a Voice support (#2602)
This PR adds APIs for voice chat to our live kit integration

Release Notes:

- N/A
2023-06-15 19:40:01 -07:00
Mikayla Maki 532e4f5648 Implement test stubs 2023-06-15 19:28:59 -07:00
Max Brunsfeld 06fa1e7e14 Fix failure to upload panics when multiple panics happen at the same time (#2616)
When multiple panics occur at the same time (usually because one thread
panics, and another thread joins it), multiple panic JSON objects can
get written to the same panic file. The resulting file won't be valid
JSON.

This PR addresses that problem via two changes:
* Format panic files as single-line JSON objects
* When a panic file  isn't valid JSON, try taking the first line

In the future, we could try combining all of the backtraces, but for
now, I just want to avoid a problem of not reporting a panic at all.

Release Notes:

- Fixed a problem with Zed's internal crash reporting.
2023-06-15 15:31:49 -07:00
Mikayla Maki d619df66bd Focus on toggle dock (#2612)
This PR updates some dock behaviors. Now the toggle-dock commands
(cmd-j/b/r) also toggle focus. This also adds zoom serialization to the
docks.

Release Notes:
- Bug fix: Toggle dock commands (cmd-j/b/r) now move focus 
- Bug fix: Dock zoom is now restored with the rest of the workspace
2023-06-15 15:20:20 -07:00
Max Brunsfeld d92780bed8 Fix failure to upload panics when multiple panics happen at the same time 2023-06-15 15:16:26 -07:00
Mikayla Maki 9b8f28d984 fixed tests to match new behavior 2023-06-15 15:09:37 -07:00
Mikayla Maki 38448a91fe Fix bug on workspace deserialization 2023-06-15 14:56:37 -07:00
Mikayla Maki 7f65a6fda0 Fix fmt 2023-06-15 14:51:38 -07:00
Max Brunsfeld 32a782b985 Don't rely on debug symbols for panic reporting (#2615)
This fixes a regression introduced in
https://github.com/zed-industries/zed/pull/2560, where panic reports did
not include backtraces. The problem was that in that PR, I assumed we
could retrieve file paths for symbols in our backtraces. But actually,
that functionality only works when the app is built locally, and a
`.dSYM` file can be magically found by the OS. We don't ship those dSYM
files with Zed, so panic symbols do not have file paths available.

Panic backtraces will still be more useful and less noisy than before
though: we will strip out frames for which we don't have symbol names,
and remove leading panic-handling stack frames from the backtraces.

Release Notes:

- N/A
2023-06-15 14:09:42 -07:00
Max Brunsfeld 50c4dbf9f5 Don't rely on debug symbols for panic reporting 2023-06-15 12:27:39 -07:00
Julia d0ee2df6ce Actually fully start reinstalled language server 2023-06-15 13:56:07 -04:00
Julia c8b86e2031 Setup C adapter with test binary 2023-06-15 12:18:34 -04:00
Julia a0154eefff Actually check and reinstall broken server 2023-06-15 12:18:34 -04:00
Julia 7353151a33 Many steps toward validating and reinstalling server after failure 2023-06-15 12:18:34 -04:00
Julia 6c5fd5f1a3 Detect LSP startup failure 2023-06-15 12:18:34 -04:00
Antonio Scandurra d17b060839 Activate screen-sharing when leader activates a panel (#2614)
Fixes
https://linear.app/zed-industries/issue/Z-1875/screen-sharing-tab-is-not-activated-when-leader-is-on-a-panel

Release Notes:

- Fixed a bug that caused followers to not see the leader's screen when
they activated a panel.
2023-06-15 18:13:07 +02:00
Antonio Scandurra 2d88135321 Activate screen-sharing when leader activates a panel 2023-06-15 18:01:30 +02:00
2a269a449b Never insert an empty prefix when splitting a message with a non-empty range
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
Co-Authored-By: Piotr Osiewicz <piotr@zed.dev>
2023-06-15 09:02:15 -06:00
Nate Butler eb22c1c86a Add internal markdown docs (#2598)
This PR adds internal docs directly to the codebase.

There are a few goals here:

- Make it easier to document our internal processes
- Put the documentation where people already are
- Allow changes to be in sync with PRs
- Make it easier for people coming in to discover our docs and onboard
faster.

With 2 more people joining us in the next few weeks it would be great to
get these up.

Release Notes:

- N/A (No public facing changes)
2023-06-15 10:55:55 -04:00
Nate Butler 5580691b1f Fix design tools link 2023-06-15 10:38:15 -04:00
Nate ButlerandPiotr Osiewicz ee0482d2c5 Update docs/index.md
Co-authored-by: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com>
2023-06-15 10:36:53 -04:00
Antonio Scandurra b709205982 Allow splitting of messages using shift-enter 2023-06-15 14:05:26 +02:00
Piotr Osiewicz 0acffbd92a editor: Highlight search results
Z-1292
2023-06-15 09:44:44 +02:00
Mikayla Maki 0b698afc1c Add zoom serialization to the workspace 2023-06-14 23:43:45 -07:00
Mikayla Maki 1fd0218dc3 Add focusing into the toggle dock commands 2023-06-14 23:04:41 -07:00
Mikayla Maki 128b0cea89 Update test-app sound 2023-06-14 18:40:45 -07:00
Mikayla Maki 71571c7129 WIP: Use audio support to send live data 2023-06-14 18:40:45 -07:00
Mikayla Makiandnathan cf70885671 Wire in audio APIs from swift
co-authored-by: nathan <nathan@zed.dev>
2023-06-14 18:40:45 -07:00
Mikayla Maki 513a0f711b Add entitlements file to bundle step (#2611)
This completes the bundle changes that will be needed to access voice,
as well as adds permissions for accessing other MacOS services, the
camera, and the necessary permissions for plugins. This was developed by
combining the entitlements of iTerm and VSCode, cross-referenced with
the entitlements of Firefox. 

Release Notes:

- Fixed a bug in enabling authorization for macOS services (preview
only)
2023-06-14 18:06:55 -07:00
Mikayla Maki 452c62c452 Update bundle 2023-06-14 17:37:47 -07:00
Mikayla Maki 26c8dadbda Add entitlements file to bundle step 2023-06-14 17:34:48 -07:00
Joseph Lyons 5c4c8f2bc5 v0.92.x dev 2023-06-14 13:27:36 -04:00
Mikayla Maki ae3179e880 Add UsageDescriptions to Info.plist (#2609)
This updates our dependency on cargo-bundle to point at a fork I've
created that adjusts the latest version's behavior to work for our use
case. This PR also updates the Zed Info.plist to include the following
keys:

- NSSystemAdministrationUsageDescription
- NSAppleEventsUsageDescription
- NSBluetoothAlwaysUsageDescription
- NSCalendarsUsageDescription
- NSCameraUsageDescription
- NSContactsUsageDescription
- NSLocationAlwaysUsageDescription
- NSLocationUsageDescription
- NSLocationWhenInUseUsageDescription
- NSMicrophoneUsageDescription
- NSSpeechRecognitionUsageDescription
- NSRemindersUsageDescription

Release Notes:

- Bug fix: Allow applications run via the Zed terminal to request
authorization for macOS services (e.g. microphone and camera)
2023-06-14 10:04:54 -07:00
Antonio Scandurra 0c36e313bc Overhaul assistant panel (#2610)
Closes
https://linear.app/zed-industries/issue/Z-2368/use-a-different-icon-for-the-assistant-panel
Closes
https://linear.app/zed-industries/issue/Z-2363/ship-the-assistant-only-on-preview
Closes
https://linear.app/zed-industries/issue/Z-2331/scrolling-makes-it-hard-to-read
Closes
https://linear.app/zed-industries/issue/Z-2306/allow-undo-and-collaboration-in-assistant

This pull request is a significant overhaul of the assistant panel,
which now uses a simple `Buffer` as opposed to a `MultiBuffer` to show
messages. Specifically, we track the start of each message with an
anchor located right after the newline (or `Anchor::MIN` for the first
message). When the anchor becomes invalid (that is, the newline is
deleted), we merge the message with the preceding ones. Crucially,
messages don't actually get deleted so that, if the newline anchor
becomes valid again (such as when undoing/redoing), we can restore the
messages as well.

As part of this overhaul, we are also improving the scrolling behavior
to maintain the viewport stable only when editing or moving the cursor,
but otherwise leave the scroll position unchanged when manually
scrolling up or down.

Note that with these changes, we are limiting access to the assistant to
users on preview (and dev), as we want to polish the behavior a little
more before shipping to the general public. Users on stable will still
be able to see the default settings/keybindings of the assistant, but I
think that's okay, as they won't be able to do anything with them.

Release Notes:

- Added support for undo/redo in the assistant (preview-only)
- Improved the scrolling behavior of the assistant when it was
generating responses. Now Zed will keep the viewport stable only when
editing or moving the cursor, but otherwise leave the scroll position
unchanged when manually scrolling up or down (preview-only)
- Changed the icon of the assistant panel (preview-only)

**Note for @JosephTLyons: given that we're feature flagging this, let's
make sure things on stable look reasonable and work correctly. Things to
look out for: ensure a stock installation works, changing the settings
on stable works, changing the keybinding on stable works.**
2023-06-14 14:09:09 +02:00
Antonio Scandurra e9a5a6fdea Use robot icon for assistant to prevent confusion with conversations 2023-06-14 12:14:43 +02:00
Antonio Scandurra e14e11b748 Avoid loading the assistant panel on stable 2023-06-14 12:08:49 +02:00
Antonio Scandurra 26adb28be2 Save cursor scroll position when the editor is auto-scrolled 2023-06-14 12:00:27 +02:00