Commit log

05f797f Fix missing diagnostic and text highlights after blocks (#19920)

Click to expand commit body
Release Notes:

- Fixed an issue where diagnostic underlines and certain text highlights
were not rendered correctly below block decorations such as the inline
assistant prompt.

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

Max Brunsfeld , Antonio , and Richard created

a4b818e Better handle interrupted connections for shared SSH (#19925)

Click to expand commit body
Co-Authored-By: Mikayla <mikayla@zed.dev>

Conrad Irwin and Mikayla created

7dadb5b zed 0.159.4

Peter Tripp created

a8a690e SSH Remoting: Fix diagnostic summary syncing (#19923)

Click to expand commit body
Co-Authored-By: Mikayla <mikayla@zed.dev>

Release Notes:

- SSH Remoting: Fix diagnostics summary over collab

Co-authored-by: Mikayla <mikayla@zed.dev>

Conrad Irwin and Mikayla created

8e251e3 Fix the log spam from the BlameBuffer request (#19921)

Click to expand commit body
Release Notes:

- N/A

Mikayla Maki created

a776c00 Fix a rare crash on startup (#19922)

Click to expand commit body
Release Notes:

- Fixed a rare crash that could happen when certain SQL statements are
prepared

Mikayla Maki created

11d31e5 Fix quotes in Rust (#19914)

Click to expand commit body
Release Notes:

- (preview only) Fixed quote-autoclose in Rust

Conrad Irwin created

eb806b9 Fix Julia icon extension lookup (#19916)

Click to expand commit body
Release Notes:

- Fixed a bug where the Julia icon was not displayed for Julia files.

Joseph T. Lyons created

febd55d Fix wrong UpdateWorktree chunk size being used in release mode (#19912)

Click to expand commit body
Release Notes:

- Fixed slowness when collaborating

Co-authored-by: Thorsten <thorsten@zed.dev>

Conrad Irwin and Thorsten created

a6a8e46 zed 0.159.3

Peter Tripp created

efc1840 Ensure shared ssh project propagates buffer changes to all participants (#19907)

Click to expand commit body
Fixed the bug when shared ssh project did not account for client
changing things in their buffers.
Also ensures Prettier formatting workflow works for both ssh project
owner and ssh project clients.

Release Notes:

- N/A

---------

Co-authored-by: Conrad Irwin <conrad@zed.dev>

Kirill Bulatov and Conrad Irwin created

cd1eaa1 Add more context to the save new file path picker (#19863)

Click to expand commit body
Release Notes:

- N/A

Co-authored-by: Conrad <conrad@zed.dev>

Mikayla Maki and Conrad created

cfcd398 Add Gleam icon (#19887)

Click to expand commit body
I took a shot at creating an icon version of the Gleam logo in response
to https://github.com/zed-industries/zed/pull/19529

Release Notes:

- Added an icon for Gleam files.


![image](https://github.com/user-attachments/assets/97432ded-342f-4d87-8eb2-dc9145513d8c)

<img width="231" alt="Screenshot 2024-10-29 at 9 46 33 AM"
src="https://github.com/user-attachments/assets/c957c98f-3da0-4b92-bc21-2a5adca1daa3">

---------

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

Jen Stehlik and Marshall Bowers created

cca65c8 remote servers: Fix title from alpha to beta (#19889)

Click to expand commit body
Discussed this in Slack yesterday. We use `beta` because that's what we
use in the docs as well.

Release Notes:

- N/A

Thorsten Ball created

ad6d20e vsc menu: Fix issue when switching branch while non-visible worktree is open (#19888)

Click to expand commit body
Fixes a regression introduced in #19755

<img width="935" alt="Screenshot 2024-10-29 at 12 13 04"
src="https://github.com/user-attachments/assets/7699b8da-631d-4932-89a8-bc5d7f2546f1">

Co-Authored-by: Thorsten <thorsten@zed.dev>

Release Notes:

- Fixed an issue where the branch switcher would show an error, when
opening a file outside of the project

Co-authored-by: Thorsten <thorsten@zed.dev>

Bennet Bo Fenner and Thorsten created

1f44281 ssh remoting: Hide share button while connecting to project (#19885)

Click to expand commit body
Co-Authored-by: Thorsten <thorsten@zed.dev>

Release Notes:

- N/A

Co-authored-by: Thorsten <thorsten@zed.dev>

Bennet Bo Fenner and Thorsten created

7d4a643 ssh remoting: Check nightly version correctly by comparing commit SHA (#19884)

Click to expand commit body
This ensures that we detect if a new nightly version of the remote
server is available.
Previously we would always mark a version as matching if they had the
same semantic version.
However, for nightly versions we also need to check if they have the
same commit SHA.

Co-Authored-by: Thorsten <thorsten@zed.dev>

Release Notes:

- N/A

---------

Co-authored-by: Thorsten <thorsten@zed.dev>

Bennet Bo Fenner and Thorsten created

91ee7f4 ssh remoting: Show the host's GitHub name in the titlebar when sharing an SSH project (#19844)

Click to expand commit body
The name (GitHub name) of the host was not displayed when sharing an ssh
project.

Previously we assumed that the a collaborator is a host if the
`replica_id` of the collaborator was `0`,
but for ssh project the `replica_id` is actually `1`.

<img width="329" alt="Screenshot 2024-10-28 at 18 16 30"
src="https://github.com/user-attachments/assets/c0151e12-a96f-4f38-aec1-4ed5475a9eaf">


Co-Authored-by: Thorsten <thorsten@zed.dev>

Release Notes:

- N/A

---------

Co-authored-by: Thorsten <thorsten@zed.dev>

Bennet Bo Fenner and Thorsten created

874b4b8 Future-proof indent guides settings for panels (#19878)

Click to expand commit body
This PR ensures that we do not have to break the indent guides settings
for the project/outline panel. In the future we might want to have a
more granular way to control when to show indent guides, or control
other indent guide properties, like its width.

Release Notes:

- N/A

Bennet Bo Fenner created

9cdccb2 restore `editor::UnfoldRecursive` binding (#19865)

Joseph T. Lyons created

70d6ad5 language_selector: Fix debug_assert firing off on context menu creation for LSP view (#19854)

Click to expand commit body
Closes #ISSUE

Release Notes:

- N/A

Piotr Osiewicz created

6a58d8c Fix mouse clicks on remote-open-folder UI (#19851)

Click to expand commit body
Also change Zed's standard style to use
`.track_focus(&self.focus_handle(cx))`, instead of
`.track_focus(&self.focus_handle)`, to catch these kinds of errors more
easily in the future.

Release Notes:

- N/A

---------

Co-authored-by: Conrad <conrad@zed.dev>

Mikayla Maki and Conrad created

d641115 zed 0.159.2

Peter Tripp created

c300c1d Merge branch 'main' into v0.159.x

Peter Tripp created

826d83e Fix backtrace spam on remote server (#19850)

Click to expand commit body
Release Notes:

- N/A

Co-authored-by: conrad <conrad@zed.dev>

Mikayla Maki and conrad created

f5d5fab Improve `fold_at_level` performance (#19845)

Click to expand commit body
Just spotted a tiny error that was causing us to continue looking for
nested folds 1 layer deeper than any fold already found at the target
level. We shouldn't continue to seek for a deeper fold after the fold at
the target level is found.

Tested on a debug build and used `editor.rs` as the source material:

```
Old

Level 1 fold:
[crates/editor/src/editor.rs:10777:9] counter = 2806
[crates/editor/src/editor.rs:10778:9] time_elapsed = 320.570792ms

Level 2 fold:
[crates/editor/src/editor.rs:10777:9] counter = 5615
[crates/editor/src/editor.rs:10778:9] time_elapsed = 497.4305ms

Level 3 fold:
[crates/editor/src/editor.rs:10777:9] counter = 7528
[crates/editor/src/editor.rs:10778:9] time_elapsed = 619.818334ms

New

Level 1 fold:
[crates/editor/src/editor.rs:10776:9] counter = 543
[crates/editor/src/editor.rs:10777:9] time_elapsed = 139.115625ms

Level 2 fold:
[crates/editor/src/editor.rs:10776:9] counter = 2806
[crates/editor/src/editor.rs:10777:9] time_elapsed = 312.560416ms

Level 3 fold:
[crates/editor/src/editor.rs:10776:9] counter = 5615
[crates/editor/src/editor.rs:10777:9] time_elapsed = 498.873292ms
```

Release Notes:

- N/A

Joseph T. Lyons created

fab2f22 remote project: Fix project reference leak when waiting for prompt reply (#19838)

Click to expand commit body
When the language server gave us a prompt and we'd close the window, we
wouldn't release the `project` until the next `flush_effects` call that
came in when opening a window.

With this change, we no longer hold a strong reference to the project in
the future. Fixes the leak and makes sure we clean up the SSH connection
when closing a window.

Release Notes:

- N/A

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

Thorsten Ball and Bennet created

a451bcc collab: Exempt staff from LLM usage limits (#19836)

Click to expand commit body
This PR updates the usage limit check to exempt Zed staff members from
usage limits.

We previously had some affordances for the rate limits, but hadn't yet
updated it for the usage-based billing.

Release Notes:

- N/A

Marshall Bowers created

5e9ff3e dart: Bump to v0.1.2 (#19835)

Click to expand commit body
This PR bumps the Dart extension to v0.1.2.

Changes:

- https://github.com/zed-industries/zed/pull/19592

Release Notes:

- N/A

Marshall Bowers created

cc81f19 remote server: Fix error log about inability to open buffer (#19824)

Click to expand commit body
Turns out that we used client-side `fs` to check whether something is a
directory or not, which obviously doesn't work with SSH projects.

Release Notes:

- N/A

---------

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

Thorsten Ball and Bennet created

5e89fba dart: Add support for documentation comments (#19592)

Click to expand commit body
Closes #19590

Release Notes:

- N/A
---

I'm unable to test this because rebuilding Zed with the changes does not
seem to use the changes. If maintainers could let me know how to test
these changes I'd like to verify that this really fixes #19590.

---------

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

Ömer Sinan Ağacan and Marshall Bowers created

67eb652 remote servers: Always dismiss modal (#19831)

Click to expand commit body
We display the errors in another window anyway and if the connection
takes a while it looks like a bug that the modal stays open.

Release Notes:

- N/A

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

Thorsten Ball and Bennet created

e0ea9a9 Remove leftover comments from previous PR (#19820)

Click to expand commit body
Co-Authored-by: Thorsten <thorsten@zed.dev>

Removes some leftover comments from #19766 

Release Notes:

- N/A

Co-authored-by: Thorsten <thorsten@zed.dev>

Bennet Bo Fenner and Thorsten created

ff29a34 zig: Account for doctests in outline (#19776)

Click to expand commit body
zig has a feature called
[doctests](https://ziglang.org/documentation/master/#Doctests) where
instead of providing a string as the name of a test you use an
identifier so that the test is "tied" to it and can be used in
documentation. this wasnt accounted for so any tests using this were
unnamed in the outline

Release Notes:

- N/A

xdBronch created

6686f66 ollama: Ensure only single task fetches models (#19830)

Click to expand commit body
Before this change, we'd see a ton of requests from the Ollama provider
trying to fetch models:

```
[2024-10-28T15:00:52+01:00 DEBUG reqwest::connect] starting new connection: http://localhost:11434/
[2024-10-28T15:00:52+01:00 DEBUG reqwest::connect] starting new connection: http://localhost:11434/
[2024-10-28T15:00:52+01:00 DEBUG reqwest::connect] starting new connection: http://localhost:11434/
[2024-10-28T15:00:52+01:00 DEBUG reqwest::connect] starting new connection: http://localhost:11434/
[2024-10-28T15:00:52+01:00 DEBUG reqwest::connect] starting new connection: http://localhost:11434/
[2024-10-28T15:00:52+01:00 DEBUG reqwest::connect] starting new connection: http://localhost:11434/
[2024-10-28T15:00:52+01:00 DEBUG reqwest::connect] starting new connection: http://localhost:11434/
[2024-10-28T15:00:52+01:00 DEBUG reqwest::connect] starting new connection: http://localhost:11434/
[2024-10-28T15:00:52+01:00 DEBUG reqwest::connect] starting new connection: http://localhost:11434/
[2024-10-28T15:00:52+01:00 DEBUG reqwest::connect] starting new connection: https://api.zed.dev/
[2024-10-28T15:00:52+01:00 DEBUG reqwest::connect] starting new connection: http://localhost:11434/
[2024-10-28T15:00:52+01:00 DEBUG reqwest::connect] starting new connection: http://localhost:11434/
[2024-10-28T15:00:52+01:00 DEBUG reqwest::connect] starting new connection: http://localhost:11434/
[2024-10-28T15:00:52+01:00 DEBUG reqwest::connect] starting new connection: http://localhost:11434/
[2024-10-28T15:00:52+01:00 DEBUG reqwest::connect] starting new connection: http://localhost:11434/
[2024-10-28T15:00:52+01:00 DEBUG reqwest::connect] starting new connection: http://localhost:11434/
[2024-10-28T15:00:52+01:00 DEBUG reqwest::connect] starting new connection: http://localhost:11434/
```

Turns out we'd send a request on *every* change to settings.

Now, with this change, we only send a single request.

Release Notes:

- N/A

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

Thorsten Ball and Bennet created

8a96ea2 context_servers: Support tools (#19548)

Click to expand commit body
This PR depends on #19547 

This PR adds support for tools from context servers. Context servers are
free to expose tools that Zed can pass to models. When called by the
model, Zed forwards the request to context servers. This allows for some
interesting techniques. Context servers can easily expose tools such as
querying local databases, reading or writing local files, reading
resources over authenticated APIs (e.g. kubernetes, asana, etc).

This is currently experimental. 

Things to discuss
* I want to still add a confirm dialog asking people if a server is
allows to use the tool. Should do this or just use the tool and assume
trustworthyness of context servers?
* Can we add tool use behind a local setting flag?

Release Notes:

- N/A

---------

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

David Soria Parra and Marshall Bowers created

cdddb4d Add language toolchains (#19576)

Click to expand commit body
This PR adds support for selecting toolchains for a given language (e.g.
Rust toolchains or Python virtual environments) with support for SSH
projects provided out of the box. For Python we piggy-back off of
[PET](https://github.com/microsoft/python-environment-tools), a library
maintained by Microsoft.
Closes #16421
Closes #7646

Release Notes:

- Added toolchain selector to the status bar (with initial support for
Python virtual environments)

Piotr Osiewicz created

03bd954 docs: Add diagram to remote development docs (#19827)

Click to expand commit body
Release Notes:

- N/A

Thorsten Ball created

177dfdf Declare RUSTFLAGS env var for all CI jobs (#19826)

Click to expand commit body
Follow-up of https://github.com/zed-industries/zed/pull/19149 

Makes RUSTFLAGS propagation uniform, to ensure all `cargo ...` jobs get
the same RUSTFLAGS env set.

Release Notes:

- N/A

Kirill Bulatov created

2ab0b3b remote server: Fix language servers not starting (#19821)

Click to expand commit body
PR #19653 change the code in this diff, which lead to the remote_server
binary trying to load language grammars, which in turn failed, and
stopped languages from being loaded correctly.

That then lead to language servers not starting up.

This change reintroduces what #19653 removed, so that we don't load the
grammar on the remote_server, by ignoring the grammar name from the
config. The tests still all work.


Release Notes:

- N/A

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

Thorsten Ball and Bennet created

888fec9 outline panel: Add indent guides (#19719)

Click to expand commit body
See #12673

| File | Search |
|--------|--------|
| <img width="302" alt="image"
src="https://github.com/user-attachments/assets/44b8d5f9-8446-41b5-8c0f-e438050f0ac9">
| <img width="301" alt="image"
src="https://github.com/user-attachments/assets/a2e6f77b-6d3b-4f1c-8fcb-16bd35274807">
|



Release Notes:

- Added indent guides to the outline panel

Bennet Bo Fenner created

e86b096 docs: Add `indent_guides` setting to project panel docs (#19819)

Click to expand commit body
Follow up to #18260 

Release Notes:

- N/A

Bennet Bo Fenner created

fd3b5ff Fix the tests

Click to expand commit body
These tests were removed in Preview, but that commit was not yet cherry-picked here.

Kirill Bulatov created

ffe36c9 Remove hosted projects (#19754)

Click to expand commit body
Release Notes:

- N/A

Mikayla Maki created

9517964 Fixed outline panel panicking on filtering (#19811)

Click to expand commit body
Closes https://github.com/zed-industries/zed/issues/19732

Release Notes:

- Fixed outline panel panicking on filtering
([#19732](https://github.com/zed-industries/zed/issues/19732))

Kirill Bulatov created

2d16d2d Fixed outline panel panicking on filtering (#19811)

Click to expand commit body
Closes https://github.com/zed-industries/zed/issues/19732

Release Notes:

- Fixed outline panel panicking on filtering
([#19732](https://github.com/zed-industries/zed/issues/19732))

Kirill Bulatov created

c69da2d Add support for git branches on remote projects (#19755)

Click to expand commit body
Release Notes:

- Fixed a bug where the branch switcher could not be used remotely.

Mikayla Maki created

5506669 windows: Fix more windows platform test (#19802)

Click to expand commit body
Release Notes:

- N/A

---------

Co-authored-by: Kirill Bulatov <kirill@zed.dev>

CharlesChen0823 and Kirill Bulatov created

b139407 markdown preview: Ignore inline HTML tags in text (#19804)

Click to expand commit body
Follow up to #19785

This PR ensures that we explicitly ignore inline HTML tags so that we
can still extract the text between the tags and show them to the user

Release Notes:

- N/A

Bennet Bo Fenner created

db61711 ci: Don't run GitHub Actions workflows on forks (#19789)

Click to expand commit body
- Closes: https://github.com/zed-industries/zed/issues/19351

Release Notes:

- N/A

Peter Tripp created