Commit log

fcd2996 zed 0.174.8

Peter Tripp created

3f3d81f copilot: Add Claude 3.7 Sonnet to Copilot Chat (#25529)

Click to expand commit body
- Follow-up to: https://github.com/zed-industries/zed/issues/25488

Co-authored-by: Peter Tripp <peter@zed.dev>

zhaopeng and Peter Tripp created

f6a4898 Update Assistant context limits (#25087)

Click to expand commit body
- Update GitHub Copilot Chat context limits
- Add decimal separators for consistency

Peter Tripp created

47f9db9 copilot: Add support for Gemini 2.0 Flash model to Copilot Chat (#24952)

Click to expand commit body
Co-authored-by: Peter Tripp <peter@zed.dev>

Richard Hao and Peter Tripp created

c93b5d1 Give Zed AI users access to Claude 3.7 Sonnet (#25577)

Click to expand commit body
This PR updates the client-side checks to give Zed AI users access to
Claude 3.7 Sonnet.

Requires https://github.com/zed-industries/zed/pull/25576 to be
deployed.

Release Notes:

- Added support for Claude 3.7 Sonnet to Zed AI.

Marshall Bowers created

e9c2681 Bring back our CI (cherry-pick #25545) (#25551)

Click to expand commit body
Cherry-picked Bring back our CI (#25545)

Closes #ISSUE

Fix `The package requires the Cargo feature called edition2024, but that
feature is not stabilized in this version of Cargo (1.81.0`

Release Notes:

- N/A

Co-authored-by: 张小白 <364772080@qq.com>

gcp-cherry-pick-bot[bot] and 张小白 created

f33055d Bump to 0.174.7 for @maxbrunsfeld

Zed Bot created

bd778c8 Notarize with a team key (#25479)

Click to expand commit body
Should make it less likely that notorization fails when nathan changes
his passwords.

(though probably no less likly to fail beacuse apple forces us to resign
new agreements on the regular)

Release Notes:

- N/A

---------

Co-authored-by: Peter Tripp <peter@zed.dev>

Conrad Irwin and Peter Tripp created

e2b6acb Add Anthropic Claude 3.7 support (#25497)

Peter Tripp created

d5fde66 zed 0.174.6

Joseph T. Lyons created

a8af92a Continue improving font adjustment settings (#24908)

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

Based on the feedback,

* made non-persisting font size change as a default in Zed keymaps
JetBrains IDEs seem to persist font size changes by default, hence left
to do so in Zed keymaps too

* fixed a bug with holding a binding to change the font size caused
flickering

Release Notes:

- N/A

Kirill Bulatov created

4c2c558 Adds a way to toggle font size without settings adjustments (#24857)

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

Now `zed::IncreaseBufferFontSize` (and all the same UI- and
Buffer-related settings) action is parameterized with `{ "persist": true
}` (default).
Using `"persist": false` brings back resizing behavior prior to
https://github.com/zed-industries/zed/pull/23265


Release Notes:

- Added a way to toggle font size without settings adjustments

Kirill Bulatov created

fd8a12b zed 0.174.5

Joseph T. Lyons created

2b7f957 Fix branches with slashes in their names not being listed (#24809)

Click to expand commit body
`refs/heads/*` doesn't match e.g. `refs/heads/cole/branch-with-slash`
(thanks fnmatch), but `refs/heads/**/*` does. This also works for
several levels of slash.

Release Notes:

- N/A

Cole Miller created

f1af2a4 v0.174.x stable

Joseph T. Lyons created

cf135b8 Properly normalize completion labels with multi-byte characters (#25150)

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

Release Notes:

- Fixed panics on completion with multi-byte characters input

Kirill Bulatov created

fe6678f zed 0.174.4

Joseph T. Lyons created

963cb2b edit predictions: Fix fold not expanding after jump (#25116)

Click to expand commit body
Closes #24938.

Release Notes:

- Edit predictions: Fix fold not expanding after jump

João Marcos created

7c8f01a zed 0.174.3

Antonio Scandurra created

4522352 Fix LSP rename in Go (cherry-pick #25073) (#25075)

Click to expand commit body
Cherry-picked Fix LSP rename in Go (#25073)

Some language servers report version 0 even if the buffer hasn't been
opened yet. We detect this case and treat it as if the version was
`None`.

Closes #23706

Release Notes:

- Fixed a bug that prevented renames for some languages.

Co-authored-by: Antonio Scandurra <me@as-cii.com>

gcp-cherry-pick-bot[bot] and Antonio Scandurra created

06efcd1 Bump to 0.174.2 for @0xtimsb

Zed Bot created

5430063 migrator: Fix keymap task_name regression (cherry-pick #24898) (#24901)

Click to expand commit body
Cherry-picked migrator: Fix keymap task_name regression  (#24898)

Closes #24832

Only turns specified deperecated keys and values to snake case.

Release Notes:

- Fixed issue where keybindings would open task selector instead of
spawn that task.

Co-authored-by: smit <0xtimsb@gmail.com>

gcp-cherry-pick-bot[bot] and smit created

fd67830 Force manual publishing of preview (#24894)

Click to expand commit body
This is just a temporary change to help us debug with some weird issues
happening:
- Discord release not firing for certain builds
- Random blank release drafts showing up

Release Notes:

- N/A

Joseph T. Lyons created

de0fe20 Bump to 0.174.1 for @maxdeviant

Zed Bot created

bef1ebb edit predictions: Fix cursor popover edit preview panic (cherry-pick #24866) (#24874)

Click to expand commit body
Cherry-picked edit predictions: Fix cursor popover edit preview panic
(#24866)

Release Notes:

- Fixed a panic when displaying a whitespace-only line in the edit
prediction preview

---------

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

Co-authored-by: Agus Zubiaga <agus@zed.dev>
Co-authored-by: Antonio <antonio@zed.dev>

gcp-cherry-pick-bot[bot] , Agus Zubiaga , and Antonio created

8e8e15b edit predictions: Fix manually requesting completions (cherry-pick #24860) (#24868)

Click to expand commit body
Cherry-picked edit predictions: Fix manually requesting completions
(#24860)

We were disabling edit predictions altogether when
`show_edit_predictions` was set to `false`. However, even in that case,
`editor::ShowEditPrediction` is supposed to let your request a
prediction manually.

Release Notes:

- Fixed `editor::ShowEditPrediction` when `show_edit_predictions` is set
to `false`.

Co-authored-by: Agus Zubiaga <agus@zed.dev>

gcp-cherry-pick-bot[bot] and Agus Zubiaga created

395cc58 theme: Fix icon theme switching changing the theme (cherry-pick #24849) (#24863)

Click to expand commit body
Cherry-picked theme: Fix icon theme switching changing the theme
(#24849)

Closes #24846 

Release Notes:

- Fixed an issue where changing the icon theme would change the theme.

Co-authored-by: Sanjeev Shrestha <sethstha@gmail.com>

gcp-cherry-pick-bot[bot] and Sanjeev Shrestha created

da3e89e zeta: Update URL to edit prediction blog post (cherry-pick #24828) (#24840)

Click to expand commit body
Cherry-picked zeta: Update URL to edit prediction blog post (#24828)

This PR updates the URL to the edit prediction blog post.

Release Notes:

- N/A

Co-authored-by: Marshall Bowers <git@maxdeviant.com>

gcp-cherry-pick-bot[bot] and Marshall Bowers created

0bd8923 Prefer keybinding with least modifiers when not in conflict mode

Agus Zubiaga created

60621dc edit predictions: Do not use conflict context for other providers (#24807)

Click to expand commit body
This is to avoid confusing copilot/supermaven users when the cursor is
on leading whitespace.

Release Notes:

- N/A

Agus Zubiaga created

e94ed16 legal: Terms of Use (2025-02-13) (#24803)

Click to expand commit body
Updated [Zed Terms of Use](https://zed.dev/terms) for Edit Predictions

Peter Tripp created

788a2bc Make edit prediction bindings backwards compatible with existing user keymaps (#24802)

Click to expand commit body
Release Notes:

- N/A

---------

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

Agus Zubiaga and Antonio created

d090b04 v0.174.x preview

Joseph T. Lyons created

7186709 Migrate edit_prediction_provider setting before updating its value to 'zed' during onboarding (#24781)

Click to expand commit body
This fixes a bug where we'd update your settings to an invalid state if
you were using the old `inline_completion_provider` setting, then
onboarded to Zeta, then migrated your settings.

Release Notes:

- N/A

Co-authored-by: Michael Sloan <mgsloan@gmail.com>
Co-authored-by: Agus Zubiaga <hi@aguz.me>

Max Brunsfeld , Michael Sloan , and Agus Zubiaga created

3d68dba edit predictions: Iterate on onboarding modal copywriting (#24779)

Click to expand commit body
Release Notes:

- N/A

---------

Co-authored-by: Nathan Sobo <1789+nathansobo@users.noreply.github.com>

Danilo Leal and Nathan Sobo created

f0cd71e Update cloudflare/wrangler-action digest to 392082e (#24753)

Click to expand commit body
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[cloudflare/wrangler-action](https://redirect.github.com/cloudflare/wrangler-action)
| action | digest | `7a5f8bb` -> `392082e` |

---

### Configuration

📅 **Schedule**: Branch creation - "after 3pm on Wednesday" in timezone
America/New_York, Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

Release Notes:

- N/A

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNjcuMSIsInVwZGF0ZWRJblZlciI6IjM5LjE2Ny4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

renovate[bot] and renovate[bot] created

a13c2ba Improve error message for `AcceptEditPredictions` - add docs link (#24772)

Click to expand commit body
The docs have not been updated yet, this is anticipating their presence
soon.


![image](https://github.com/user-attachments/assets/bbcf56f2-6d5b-460b-8ed0-36bef3b4f12f)

Release Notes:

- N/A

Michael Sloan created

7ba1492 file_icons: Add separate icon key for Bicep files (#24757)

Click to expand commit body
This PR adds support for bicep file icon:

Release Notes:

- Icon themes: Added the ability to change the file icon for Bicep
(`.bicep`) files.

Michal Vrbata created

0a68122 edit predictions: Enable blog post link behind a feature flag (#24720)

Click to expand commit body
This PR updates the blog post link in the onboarding modal to be behind
the `predict-edits-launch` feature flag instead of a staff flag.

This will allow us to enable the blog post link once we're live.

Release Notes:

- N/A

---------

Co-authored-by: Marshall Bowers <git@maxdeviant.com>

Danilo Leal and Marshall Bowers created

277fb54 zeta: Respect `x-zed-minimum-required-version` header (#24771)

Click to expand commit body
This PR makes it so Zeta respects the `x-zed-minimum-required-version`
header sent back from the server.

If the current Zed version is strictly less than the indicated minimum
required version, we show an error indicating that an update is required
in order to continue using Zeta:

<img width="472" alt="Screenshot 2025-02-12 at 6 15 44 PM"
src="https://github.com/user-attachments/assets/51b85dff-23a0-464c-ae4b-5b8f46b5915c"
/>

Release Notes:

- N/A

Marshall Bowers created

0e42a69 Update dependency danger to v12.3.4 (#24770)

Click to expand commit body
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [danger](https://redirect.github.com/danger/danger-js) | [`12.3.3` ->
`12.3.4`](https://renovatebot.com/diffs/npm/danger/12.3.3/12.3.4) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/danger/12.3.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/danger/12.3.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/danger/12.3.3/12.3.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/danger/12.3.3/12.3.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>danger/danger-js (danger)</summary>

###
[`v12.3.4`](https://redirect.github.com/danger/danger-js/blob/HEAD/CHANGELOG.md#1234)

[Compare
Source](https://redirect.github.com/danger/danger-js/compare/12.3.3...12.3.4)

- Ensure that [babel ignores](https://babeljs.io/docs/options#ignore) do
not cause the transpiler to fall over, by supporting the
`null` return from `loadOptions` which occurs when a file is ignored.
-   Allow absolute paths for a Dangerfile

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 3pm on Wednesday" in timezone
America/New_York, Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

Release Notes:

- N/A

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNjcuMSIsInVwZGF0ZWRJblZlciI6IjM5LjE2Ny4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

renovate[bot] and renovate[bot] created

b014afa Add an undo button to the git panel (#24593)

Click to expand commit body
Also prep infrastructure for pushing a commit

Release Notes:

- N/A

---------

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
Co-authored-by: Conrad <conrad@zed.dev>
Co-authored-by: Nate Butler <iamnbutler@gmail.com>

Mikayla Maki , Conrad Irwin , Conrad , and Nate Butler created

df8adc8 Fix linux zeta modifiers display (#24764)

Click to expand commit body
Improves rendering of Zeta keybind shortcuts on Linux

Before:

![image](https://github.com/user-attachments/assets/9b6a61f7-dade-480f-a864-acdcede05957)

After: (with muting modifier changes merged)

![image](https://github.com/user-attachments/assets/dd616d29-ac2e-4c8b-bf9b-5d74f8e4f1c4)


Release Notes:

- N/A

---------

Co-authored-by: Michael <michael@zed.dev>
Co-authored-by: Agus <agus@zed.dev>

Ben Kunkle , Michael , and Agus created

522b8d6 editor: Fix autoscroll flickering regression (#24758)

Click to expand commit body
This PR fixes autoscroll flickering issue caused by recent
[#24735](https://github.com/zed-industries/zed/pull/24735) which fixes
soft wrap scroll issues. No release notes, as this was few hours ago.

Adding vertical scrollbar width to viewport width, so that autoscroll
function don't try to that much pixels extra.

Release Notes:

- N/A

smit created

5dc3c23 workspace: Do not reuse window for sub directory (only for root directory and sub files) (#24560)

Click to expand commit body
Closes #10232

Context:

We have three ways to open files or dirs in Zed: `zed`, `zed --new`, and
`zed --add`. `--new` forces the project to open in a new window, while
`--add` forces it to open in an existing window (even if the dir isn’t a
subdir of an existing project or the file isn’t part of it).

Using just `zed` tries to open it in an existing window based on similar
logic of `--add`, but if no related project is found the dir, opens in a
new window.

Problem:

Right now, subdirs that are part of an existing project open in the
existing window when using `zed`. By default, subdirs should open in a
new window instead. If someone wants to open it in the existing window,
they can explicitly use `--add`. After this PR, only root dir and files
will focus on existing window, when `zed ` is used.

Fix:

For the `zed` case, we’ve filtered out subdirs in the logic that assigns
them to an existing window.

Release Notes:

- Fixed an issue where subdirectories of an already opened project, when
opened via the terminal, would open in the existing project instead of a
new window.

smit created

c771ca4 Fix <1px gap between diff popover and accept keybindingg (#24756)

Click to expand commit body
Release Notes:

- N/A

Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
Co-authored-by: Danilo Leal <daniloleal09@gmail.com>
Co-authored-by: rtfeldman <oss@rtfeldman.com>
Co-authored-by: mgsloan <mgsloan@gmail.com>

Agus Zubiaga , Max Brunsfeld , Danilo Leal , rtfeldman , and mgsloan created

ab4a6f1 Open git panel when deploying project diff via action (#24751)

Click to expand commit body
Release Notes:

- N/A

Cole Miller created

316b97d Position prediction popover adjacent to edit if possible (#24750)

Click to expand commit body
Also, place accept key binding indicator on right edge of popover to
avoid obscuring content above.

Release Notes:

- N/A

Co-authored-by: Danilo Leal <daniloleal09@gmail.com>
Co-authored-by: rtfeldman <oss@rtfeldman.com>
Co-authored-by: Agus Zubiaga <hi@aguz.me>

Max Brunsfeld , Danilo Leal , rtfeldman , and Agus Zubiaga created

eea6b52 Implement staging and unstaging hunks (#24606)

Click to expand commit body
- [x] Staging hunks
- [x] Unstaging hunks
- [x] Write a randomized test
- [x] Get test passing
- [x] Fix existing bug in diff_base_byte_range computation
- [x] Remote project support
- [ ] ~~Improve performance of
buffer_range_to_unchanged_diff_base_range~~
- [ ] ~~Bug: project diff editor scrolls to top when staging/unstaging
hunk~~ existing issue
- [ ] ~~UI~~ deferred
- [x] Tricky cases
  - [x] Correctly handle acting on multiple hunks for a single file
- [x] Remove path from index when unstaging the last staged hunk, if
it's absent from HEAD, or staging the only hunk, if it's deleted in the
working copy

Release Notes:

- Add `ToggleStagedSelectedDiffHunks` action for staging and unstaging
individual diff hunks

Cole Miller created

ea8da43 ui: Fix keybind sizing for non-default UI font sizes (#24708)

Click to expand commit body
Closes #24597 

This fixes the regression from
https://github.com/zed-industries/zed/commit/00971fbe415fdc4695307f192134093c7bcd138c
which removed the `text_ui(cx)` - call from the keybinding render. The
removal caused improperly scaled font rendering as shown in the images
below.

This PR reintroduces this behaviour for all cases where `size` is not
set.

| | `main` | With this patch | Parent of
https://github.com/zed-industries/zed/commit/00971fbe415fdc4695307f192134093c7bcd138c
| --- | ---- | ---- | --- |
| Small font size (10px) | <img width="204" alt="cur_small"
src="https://github.com/user-attachments/assets/2bb1615a-c346-4da5-855c-01894744ee74"
/> | <img width="205" alt="pr_small"
src="https://github.com/user-attachments/assets/26ab70f0-d6ca-439b-aaea-4d6ded4f8f11"
/> | <img width="203" alt="prev_small"
src="https://github.com/user-attachments/assets/92a04008-8408-4a98-83a2-59fdd6e5708a"
/> |
| Large font size | <img width="369" alt="cur_big"
src="https://github.com/user-attachments/assets/8400c205-19b6-479c-a3d1-df12ed4e84da"
/> | <img width="398" alt="pr_big"
src="https://github.com/user-attachments/assets/01f495aa-0be1-4169-ae09-4292b0e638ff"
/> | <img width="389" alt="prev_big"
src="https://github.com/user-attachments/assets/e041a8ea-a958-4a3b-8fef-0f7fe5079c34"
/> |


Release Notes:

- Fixed keybind hints being improperly scaled for custom ui font sizes

Finn Evers created