Commit log

bec957b Bump to 0.138.6 for @osiewicz

Zed Bot created

0d8256b workspace: Fix drag&dropping project panel entries into editor area (#12767)

Click to expand commit body
Fixes #12733

Release Notes:

- Fixed drag&dropping project panel entries into editor area & tab bar

Piotr Osiewicz created

e1ac769 Bump to 0.138.5 for @osiewicz

Zed Bot created

45dbb89 v0.138.x stable

Joseph T Lyons created

62e8c70 Do not occlude terminal pane by terminal element (#12677)

Click to expand commit body
Release Notes:

- Fixed file drag and drop not working for terminal

Co-authored-by: Antonio Scandurra <antonio@zed.dev>

Kirill Bulatov and Antonio Scandurra created

832d339 zed 0.138.4

Bennet Bo Fenner created

69cafdf Disable indent guides for single line editors (cherry-pick #12584) (#12595)

Click to expand commit body
Cherry-picked Disable indent guides for single line editors (#12584)

This PR disables indent guides by default for single line editors. Right
now indent guides show up in the project search editor (which is only a
single line)

<img width="715" alt="image"

src="https://github.com/zed-industries/zed/assets/53836821/0b61da71-6f64-424d-9612-6a34eac4686a">


Release Notes:

- Fixed an issue where indent guides would show up in a single line
editor (e.g. project search, buffer search)

Co-authored-by: Bennet Bo Fenner <bennet@zed.dev>

gcp-cherry-pick-bot[bot] and Bennet Bo Fenner created

836dd01 indent guides: Respect language specific settings in multibuffers (cherry-pick #12528) (#12594)

Click to expand commit body
Cherry-picked indent guides: Respect language specific settings in
multibuffers (#12528)

Indent guides can be configured per language, meaning that in a multi
buffer we can get excerpts where indent guides should be
disabled/enabled/styled differently than other excerpts.

Imagine the following scenario, i have indent guides disabled in my
settings, but want to enable them for JS and Python. I also want to use
a different line width for python files. Something like this is now
supported:

<img width="445" alt="image"

src="https://github.com/zed-industries/zed/assets/53836821/0c91411c-145c-4210-a883-4c469d5cb828">

And the relevant settings for the example above:
```json
"indent_guides": {
  "enabled": false
},
"languages": {
  "JavaScript": {
    "indent_guides": {
      "enabled": true
    }
  },
  "Python": {
    "indent_guides": {
      "enabled": true,
      "line_width": 5
    }
  }
}
```



Release Notes:

- Respect language specific settings when showing indent guides in a
multibuffer
- Fixes an issue where indent guide specific settings were not
recognized when specified in local settings

Co-authored-by: Bennet Bo Fenner <bennet@zed.dev>

gcp-cherry-pick-bot[bot] and Bennet Bo Fenner created

0bd4236 zed 0.138.3

Joseph T Lyons created

9af6ec4 indent guides: Use primary buffer language to determine tab size (cherry-pick #12506) (#12520)

Click to expand commit body
Cherry-picked indent guides: Use primary buffer language to determine
tab size (#12506)

When indent guides were still WIP, I thought it might be a good idea to
detect the tab size for every line individually, so we can handle files
with mixed indentations. However, while optimizing the performance of
indent guides I found that getting the language at a given anchor was
pretty expensive, therefore I only resolved the language for the first
visible row. However, this could lead to some weird flickering, where
the indent guides would use different tab sizes depending on the first
visible row (see #12492). This can be fixed by just using the primary
buffer language size.

So as of right now indent guides cannot handle files with mixed
indentations. Im not sure if anyone actually does/expects this, but one
use case I could imagine is something like this:
User x has a svelte file, where the tab size is set to `4`. However the
svelte code uses typescript inside a script tag, which User x wants to
use a tab size of `2`. The approach used here would not work for this,
but then again I think our formatter does not even support something
like this. Im probably overcomplicating things, so let's stick with the
simple solution for now.

Release Notes:

- Fixed an issue where indent guides would use an incorrect tab size
([#12492](https://github.com/zed-industries/zed/issues/12492)).

Co-authored-by: Bennet Bo Fenner <bennet@zed.dev>

gcp-cherry-pick-bot[bot] and Bennet Bo Fenner created

4012751 One less unwrap (#12448)

Click to expand commit body
Fixes
https://zed-industries.slack.com/archives/C04S6T1T7TQ/p1717011343884699

Release Notes:

- N/A

Kirill Bulatov created

dc1f107 zed 0.138.2

Nathan Sobo created

a9bed95 Make prompt library icon in context panel staff-only for now (#12457)

Click to expand commit body
This is still pretty raw, so I'd like to hold off on shipping it to all
users.

Release Notes:

- Hide the prompt library for non-staff until it is in a more complete
state.

Nathan Sobo created

427b73c zed 0.138.1

Max Brunsfeld created

5a2297c Fix deleted hunk offset when zooming (#12442)

Click to expand commit body
Release Notes:

- Fixed an issue where expanded hunks could be rendered at the wrong
position when zooming
- Fixed an issue where expanded hunks could be rendered at the wrong
position when toggling git blame
([#11941](https://github.com/zed-industries/zed/issues/11941))

Bennet Bo Fenner created

1c7ee89 v0.138.x preview

Joseph T. Lyons created

2772f87 Make sure not to signal the main thread on fs events in ignored directories (#12436)

Click to expand commit body
Release Notes:

- N/A

Max Brunsfeld created

66affa9 Show recently-opened files when autocompleting /file without arguments (#12434)

Click to expand commit body
<img width="1588" alt="image"
src="https://github.com/zed-industries/zed/assets/482957/ea63b046-64d6-419e-8135-4863748b58fa">


Release Notes:

- N/A

Antonio Scandurra created

dca5bc5 Fix editor scrolling when closing tab using middle mouse button (#12429)

Click to expand commit body
#12005 introduced a side effect, that would cause the editor to react to
a scroll event when using the middle mouse button to close a tab

Before:


https://github.com/zed-industries/zed/assets/53836821/46cb2e71-e9d5-477c-b34a-dc9b6bc9b1f1

After:


https://github.com/zed-industries/zed/assets/53836821/6ada7985-97c9-4b52-848f-c7f9461c5216

Release Notes:

- Fixed an issue where the editor would scroll upwards if other tabs
were closed using the middle mouse button

Bennet Bo Fenner created

1db33b5 Always include context when performing inline transformation (#12426)

Click to expand commit body
Release Notes:

- Improved clarity for inline transformations by always including the
active assistant context.

Antonio Scandurra created

1674554 Fix hunk diff hitbox (#12425)

Click to expand commit body
You can see in the video that hunks were getting toggled even when
clicking on the scrollbar.


https://github.com/zed-industries/zed/assets/53836821/11f201e8-c5f1-49c8-a4d2-ac3b3343b5a8

This happened because the hitbox was actually extended to the left of
the hunk indicator, I believe that was done so that "Removed" hunk
indicators rendered correctly (Red triangles)

Fixed:


https://github.com/zed-industries/zed/assets/53836821/7b451b37-da85-4e56-9127-2a5512bd9e7a

Release Notes:

- Fixed hunk indicators getting expanded when clicking near them (but
not on them)

Bennet Bo Fenner created

a0644ac Allow specifying a custom limit for /search results (#12423)

Click to expand commit body
<img width="497" alt="image"
src="https://github.com/zed-industries/zed/assets/482957/94e94326-fb3c-4f9b-b4d9-7dd6f6f8d537">


e.g.

```
/search --9 foobar
```

Release Notes:

- N/A

Antonio Scandurra created

f3e6a0b project panel: Copy dragged entry when opt is pressed (#12348)

Click to expand commit body
Partially fixes #5119 
TODO:
- [ ] Change cursor style to Copy when dragging an entry with opt
pressed.

Release Notes:

- Drag-and-dropping a project panel entry with opt modifier pressed now
copies the entry instead of moving it.

Piotr Osiewicz created

4acfab6 Fix logic errors in `RateLimiter` (#12421)

Click to expand commit body
This pull request fixes two issues in `RateLimiter` that caused
excessive rate-limiting to take place:

- c19083a35c89a22395595f8934c117a14943ed24 fixes a mistake that caused
us to load buckets from the database incorrectly and set the
`refill_time_per_token` to equal the `refill_duration`. This was the
primary reason why rate limiting was acting oddly.
- 34b88d14f6d9fde4d967554fc2e81498c1be3e26 fixes another slight logic
error that caused tokens to be underprovisioned. This was minor compared
to the bug above.

Release Notes:

- N/A

Antonio Scandurra created

3c6c850 task: Add re-run task button to terminal title (#12379)

Click to expand commit body
Release Notes:

- Added re-run task button to terminal title.

Close #12277

## Demo


https://github.com/zed-industries/zed/assets/5518/4cd05fa5-4255-412b-8583-68e22f86561e

---------

Co-authored-by: Piotr Osiewicz <piotr@zed.dev>

Jason Lee and Piotr Osiewicz created

36d0b71 project panel: adjust right border and make active entry more prominent when panel is not focused (#12420)

Click to expand commit body
Release Notes:

- N/A

Piotr Osiewicz created

ef58509 Show symlink tooltip on icon hover only (#12419)

Click to expand commit body
Small follow-up of https://github.com/zed-industries/zed/pull/12263 

Release Notes:

- N/A

Kirill Bulatov created

cad3d2d inline assistant: Fix overlapping wrap/indent guides (#12417)

Click to expand commit body
Before:

<img width="603" alt="image"
src="https://github.com/zed-industries/zed/assets/53836821/08b7566c-4afa-40b6-8e73-4b03d26572b7">

After:

<img width="539" alt="image"
src="https://github.com/zed-industries/zed/assets/53836821/ebd69e15-c1e1-485e-9c11-35b4316ede40">


Fixes #9819

Release Notes:

- Fix wrap guides overlapping with the inline assistant
([#9819](https://github.com/zed-industries/zed/issues/9819)).

Bennet Bo Fenner created

c03600c Stop silently appending a system prompt for edit formatting (#12407)

Click to expand commit body
We should reintroduce this as part of the prompt library.

Release Notes:

- Removed an over-eager system prompt from the assistant that was
causing misbehavior. Going forward, our intent is to always let you
observe and edit text before we send it.

---------

Co-authored-by: Marshall <marshall@zed.dev>

Nathan Sobo and Marshall created

30e498a Fix GitHub Issue-creation commands

Joseph T. Lyons created

82a57a1 Disable `calls.share_on_join` by default (#12401)

Click to expand commit body
This PR changes the default value of the `calls.share_on_join` setting
from `true` to `false`.

Nathan mentioned that project sharing should be opt-in so that projects
aren't shared unless you intend for them to be.

Release Notes:

- Changed the default `calls.share_on_join` value to `false`.

Marshall Bowers created

7969a10 Support setting custom background color for syntax highlighting (#12400)

Click to expand commit body
Release Notes:

- Added support for `background_color` in `syntax` map in `theme.json`.

This adds support for setting a `background_color` for styles inside the
`syntax` map for themes defined in `theme.json`. The field is optional
so there should be no backwards compatibility issues.

It is worth noting that the current behaviour for selecting text is that
the background colours will mix/blend (I'm not sure the correct term
here). Changing this behaviour, or making it configurable, looks to be a
far more complex issue and I'm not sure I know how to do it.

Danielle Maywood created

fcb4abf Update Elixir docs (#12349)

Click to expand commit body
This PR updates the Elixir docs with a note on how to switch to using
other language server.

Release Notes:

- N/A

---------

Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>

barseek and Marshall Bowers created

cd77e72 docs: Demonstrate disabling `solargraph` when enabling `ruby-lsp` (#12399)

Click to expand commit body
This PR fixes a small issue in the Ruby docs, where we weren't properly
demonstrating that `solargraph` should be disabled when enabling
`ruby-lsp`.

Release Notes:

- N/A

Marshall Bowers created

bde3056 Increase rate limit on LLM requests to 1000/hr (via env var) (#12396)

Click to expand commit body
Release Notes:

- N/A

Co-authored-by: Marshall <marshall@zed.dev>

Nathan Sobo and Marshall created

6a48e3b ruby: Bump to v0.0.6 (#12395)

Click to expand commit body
Release Notes:

- N/A

Related: #12392

moshyfawn created

fb911bc ruby: Add Podfile as Ruby extension language path suffix (#12392)

Click to expand commit body
Release Notes:

- N/A

Closes zed-industries/extensions#803

moshyfawn created

726026a Tweak client reconnect timing (#12393)

Click to expand commit body
* Start with a longer duration
* Widen the range used for randomizing the duration between retries
* Increase the maximum duration between retries

Release Notes:

- N/A

Max Brunsfeld created

da70741 linux: Implement `should_auto_hide_scrollbars` (#12366)

Click to expand commit body
Implemented the should_auto_hide_scrollbars method for Linux using
`xdg_desktop_portal` approach

Release Notes:

- N/A

Raunak Raj created

08e3840 Update blade to pick up the descriptor initialization changes (#12340)

Click to expand commit body
Release Notes:

- N/A

Picks up https://github.com/kvark/blade/pull/118
Fixes #10351

Seeing that Zed loaded with Blade repository is consuming 260Mb of RAM.
We can tune this to be lower, but ultimately it doesn't matter: this
memory isn't wasted, it's just pools for memory and descriptors, which
may be used by bigger and more complex views of Zed.

Dzmitry Malyshau created

ff9d6cc project panel: Remove active selection border when project panel is not focused (#12385)

Click to expand commit body
This should make it less attention-grabbing.

Release Notes:

- N/A

Piotr Osiewicz created

01e8688 Add placeholder for extension slash commands (#12387)

Click to expand commit body
This PR adds a slightly better placeholder for extension slash commands
than the current "TODO" text.

Right now we display the command name and an arbitrary icon.

<img width="644" alt="Screenshot 2024-05-28 at 12 15 07 PM"
src="https://github.com/zed-industries/zed/assets/1486634/11761797-5ccc-4209-8b00-70b714f10a78">

Release Notes:

- N/A

Marshall Bowers created

ac7aca3 Fix assistant message header padding (#12386)

Click to expand commit body
Release Notes:

- N/A

Co-authored-by: Nathan <nathan@zed.dev>

Antonio Scandurra and Nathan created

371abd3 Introduce a new `/tabs` command (#12382)

Click to expand commit body
This inserts the content of the open tabs sorted by recency.

Release Notes:

- N/A

---------

Co-authored-by: Nathan <nathan@zed.dev>

Antonio Scandurra and Nathan created

b466a8b Remove the `assistant2` crate (#12380)

Click to expand commit body
Release Notes:

- N/A

Antonio Scandurra created

59662fb Introduce `/search` command to assistant (#12372)

Click to expand commit body
This pull request introduces semantic search to the assistant using a
slash command:


https://github.com/zed-industries/zed/assets/482957/62f39eae-d7d5-46bf-a356-dd081ff88312

Moreover, this also adds a status to pending slash commands, so that we
can show when a query is running or whether it failed:

<img width="1588" alt="image"
src="https://github.com/zed-industries/zed/assets/482957/e8d85960-6275-4552-a068-85efb74cfde1">

I think this could be better design-wise, but seems like a pretty good
start.

Release Notes:

- N/A

Antonio Scandurra created

016a144 project panel: Allow selecting multiple entries & add support for multiselect actions (#12363)

Click to expand commit body
Fixes #4983 
TODO:
- [x] Improve release note.
- [x] Tests

Release Notes:

- Project panel now supports selecting multiple entries via cmd-click
and shift-click/shift-up/shift-down.
- Added support for handling multiple selected project panel entries to
Cut, Copy, Trash and Delete actions.

Piotr Osiewicz created

1cf3496 indent guides: Adjust handling of folded lines (#12375)

Click to expand commit body
Release Notes:

- N/A

Bennet Bo Fenner created

df4c60e docs: Indent guides (#12373)

Click to expand commit body
Release Notes:

- N/A

Bennet Bo Fenner created

a03813a Add icon and hover description for symlinks (#12263)

Click to expand commit body
![image](https://github.com/zed-industries/zed/assets/12102857/c6ed8140-1256-4618-aa46-64e66becdf7e)


![Screenshot_20240524_201346](https://github.com/zed-industries/zed/assets/12102857/2577067c-4f61-486a-8613-14941555f5a8)

Resolves https://github.com/zed-industries/zed/issues/12142


Release Notes:

- Added in project panel an icon and hover description for symlinks ([12142](https://github.com/zed-industries/zed/issues/12142))

Patryck created