Commit log

eab4bd5 v0.91.x stable

Joseph T. Lyons created

707bd7c zed 0.91.3

Antonio Scandurra created

656f68d Activate screen-sharing when leader activates a panel (#2614)

Click to expand commit body
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.

Antonio Scandurra created

186334b zed 0.91.2

Max Brunsfeld created

b1324eb Fix failure to upload panics when multiple panics happen at the same time (#2616)

Click to expand commit body
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.

Max Brunsfeld created

e9aec1d Don't rely on debug symbols for panic reporting (#2615)

Click to expand commit body
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

Max Brunsfeld created

32ed547 zed 0.91.1

Mikayla Maki created

39915f7 Add entitlements file to bundle step (#2611)

Click to expand commit body
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)

Mikayla Maki created

2c2cea1 v0.91.x preview

Joseph Lyons created

75b1f60 Add UsageDescriptions to Info.plist (#2609)

Click to expand commit body
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)

Mikayla Maki created

2b8b954 Overhaul assistant panel (#2610)

Click to expand commit body
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.**

Antonio Scandurra created

4efe62b Use robot icon for assistant to prevent confusion with conversations

Antonio Scandurra created

049c987 Avoid loading the assistant panel on stable

Antonio Scandurra created

56b0bf8 Save cursor scroll position when the editor is auto-scrolled

Antonio Scandurra created

1aa1774 Avoid auto-scrolling the editor when inserting/removing headers

Antonio Scandurra created

f8b9417 Keep cursor stable as autocompletions are being streamed

Antonio Scandurra created

75ad76b :lipstick:

Antonio Scandurra created

7dab17e Re-enable copy support in the assistant

Antonio Scandurra created

27c83ca Remove unnecessary `set_render_excerpt_header` method

Antonio Scandurra created

9b76174 Parse buffer as Markdown

Antonio Scandurra created

ea5d677 Merge remote-tracking branch 'origin/main' into assistant-buffer

Antonio Scandurra created

adc8337 Restore misconfigured Cargo.toml

Mikayla Maki created

8ad7eb7 Switch to using new version of cargo bundle with more capabilities

Mikayla Maki created

b365e48 Toggle comments for empty single line selections (#2594)

Kevin Hovsäter created

77367bf Move worktree tests into their own file (#2608)

Click to expand commit body
The worktree has a lot of tests. Let's reduce their indentation, and
make it easier to navigate to them. We deserve it.

Just doing this in its own PR, to minimize conflicts.

Release Notes:

- N/A

Max Brunsfeld created

5b6d1a2 Flatten worktree tests module structure

Max Brunsfeld created

c17dbab Move worktree tests to their own file

Max Brunsfeld created

b272db9 editor: Add language setting for comment continuations (#2605)

Click to expand commit body
Per @JosephTLyons request I've added a language setting for comment
continuations.

Release Notes:

- Added a language setting for comment continuations.

Piotr Osiewicz created

aedef7b Remove panic when programatically updating an invalid setting (#2607)

Click to expand commit body
Fixes
https://linear.app/zed-industries/issue/Z-2170/thread-main-panicked-at-could-not-deserialize-setting-type-welcomebase
Fixes
https://linear.app/zed-industries/issue/Z-2228/thread-main-panicked-at-could-not-deserialize-setting-type

Max Brunsfeld created

1cd11bf Remove panic when programatically updating an invalid setting

Max Brunsfeld created

0db0a1c Skip merged messages when inserting new ones

Click to expand commit body
Co-Authored-By: Julia Risley <julia@zed.dev>

Antonio Scandurra and Julia Risley created

6e5de2f Update blocks when cycling the message role

Click to expand commit body
Co-Authored-By: Julia Risley <julia@zed.dev>

Antonio Scandurra and Julia Risley created

00cede6 Show message headers again

Click to expand commit body
Co-Authored-By: Julia Risley <julia@zed.dev>

Antonio Scandurra and Julia Risley created

2842fc2 Merge messages whose header has been invalidated

Antonio Scandurra created

2ae8b55 Get back to a compiling state with `Buffer` backing the assistant

Antonio Scandurra created

5e68dc5 Fix comments in settings files (#2604)

Click to expand commit body
I accidentally added the information about folder-specific settings to
the user settings default file - just fixing that.

Release Notes:

- N/A

Joseph T. Lyons created

5821bc4 Fix comments in settings files

Joseph Lyons created

d8a2e17 Add support for HEEx templates in Elixir, fix a bug in handling nested language injections (#2603)

Click to expand commit body
Closes https://linear.app/zed-industries/issue/Z-2211/heex-support

Release Notes:

- Added support for Elixir HEEx templates.
- Fixed a bug that caused incorrect syntax highlighting in ERB templates
([#1619](https://github.com/zed-industries/community/issues/1619)).

Max Brunsfeld created

df76ab9 Add Heex language

Max Brunsfeld created

01bd5c3 Fix syntax map bug with combined injections inside of other injections

Max Brunsfeld created

ac1882b Move SyntaxMap tests to their own file

Max Brunsfeld created

04e4389 Change action namespace to 'debug' for LSP log and syntax tree view

Max Brunsfeld created

8542911 Add a syntax tree view, for developing and debugging language support (#2601)

Click to expand commit body
This PR adds a syntax tree view, which lets you view the syntax tree of
any layer in the active editor's `SyntaxMap`.

This view uses some new APIs that I added to Tree-sitter, which allow us
to efficiently render the syntax tree using a `UniformList`. Tree-sitter
PR: https://github.com/tree-sitter/tree-sitter/pull/2316

![Screen Shot 2023-06-12 at 3 33 36
PM](https://github.com/zed-industries/zed/assets/326587/2a27ee7b-bf29-4b3b-bfa8-fb47f97a2785)

Release Notes:

- Added a *syntax tree view* that shows Zed's internal syntax tree(s)
for the active editor. You can open it running the `debug: open syntax
tree view` command from the command palette.

Max Brunsfeld created

0184661 Include field names in the syntax tree

Max Brunsfeld created

594b9de Upgrade Tree-sitter

Max Brunsfeld created

b4f3a88 Close the menu when selecting a different layer in the syntax tree view

Max Brunsfeld created

56b7497 Improve the look of the syntax tree view UI

Max Brunsfeld created

e969e3b Sync selection between syntax tree view and editor

Max Brunsfeld created

086cfe5 Start work on a syntax tree view

Max Brunsfeld created

3d02f7c Move plugins to feature-gate (#2599)

Click to expand commit body
This PR:
- Reduces our dependency count for a release build by 20%
- Reduces our release compile time by about 30s (out of ~5 minutes)

Piotr Osiewicz created