Replace dynamic downloading of WASI adapter with the provided crate.
More importantly, this makes sure we are using the same adapter version
as our version of wasmtime, which includes several fixes.
Arguably we could also at this point update to wasm32-wasip2 target and
remove this dependency as well if we want, but that might need further
testing.
Release Notes:
- N/A
Closes #22656
Part of #29144, this PR completely rewrites the key handling logic on
Windows, making it much more consistent with how things work on macOS.
However, one remaining issue is that on Windows, we should be using
`Ctrl+Shift+4` instead of `Ctrl+$`. That part is expected to be
addressed in #29144.
Release Notes:
- N/A
张小白
created
f021b40
Fix command casing in issue templates (#30761)
Click to expand commit body
Release Notes:
- N/A
Joseph T. Lyons
created
47f6d4e
Fix rejecting overwritten files if the agent previously edited them (#30744)
Click to expand commit body
Release Notes:
- Fixed rejecting overwritten files if the agent had previously edited them.
Antonio Scandurra
created
e60f029
agent: Add adjustments to settings view (#30743)
Click to expand commit body
- Make provider blocks collapsed by default
- Fix sections growing unnecessarily when there's available space
Release Notes:
- N/A
as
[comments](https://github.com/zed-industries/zed/pull/24545#issuecomment-2872833658),
I really don't known why, But IMO, add this code is not harm.
If you think this is not necessary, can close.
Release Notes:
- N/A
This PR adds some documentation about the minimap to the official docs.
**Please note:** The [current preview release
notes](https://zed.dev/releases/preview/0.187.0) refer to the minimap PR
for configuration options. However, `font_size` and `width` were removed
as settings after some discussion but are still referenced in the PR
description, which might be misleading. On the other hand, some of the
available configuration options are not listed in the PR description. It
might be better to refer to the docs or the default settings in order to
avoid confusion.
Release Notes:
- N/A
Finn Evers
created
5078f0b
client: Remove extra clone, pass big struct by reference (#30716)
Click to expand commit body
Commit titles explain all of the changes
Release Notes:
- N/A
tidely
created
607bfd3
component: Replace `linkme` with `inventory` (#30705)
Click to expand commit body
This PR replaces the use of `linkme` with `inventory` for the component
preview registration.
Release Notes:
- N/A
Marshall Bowers
created
87cb498
debugger: Make the stack frame list and module list keyboard-navigable (#30682)
Click to expand commit body
- Switch stack frame list and module list to `UniformList` to access
scrolling behavior
- Implement `menu::` navigation actions
Release Notes:
- Debugger Beta: Added support for menu navigation actions (`ctrl-n`,
`ctrl-p`, etc.) in the stack frame list and module list.
Cole Miller
created
6420df3
eval: Count execution errors as failures (#30712)
Click to expand commit body
- Evals returning an error (e.g., LLM API format mismatch) were silently
skipped in the aggregated results. Now we count them as a failure (0%
success score).
- Setting the `VERBOSE` environment variable to something non-empty
disables string truncation
Release Notes:
- N/A
Oleksiy Syvokon
created
83498eb
Improve error message around failing to install dev extensions (#30711)
Closes https://github.com/zed-industries/zed/issues/30592
Release Notes:
- agent: Fixed Markdown codeblock header buttons being pushed by long
paths/file names.
Danilo Leal
created
96a0568
Add setting to disable the sign in button (#30450)
Click to expand commit body
Designed to pair with #30444 to enable enterprises to make it harder to
sign into the collab server and perhaps accidentally end up sending code
to Zed.
Release Notes:
- N/A
Co-authored-by: Mikayla Maki <mikayla@zed.dev>
Tristan Hume
and
Mikayla Maki
created
b6828e5
agent: Don't duplicate recommended models in all models list (#30692)
Click to expand commit body
Release Notes:
- N/A
Oleksiy Syvokon
created
78d3ce4
editor: Handle more completion sort cases (#30690)
Click to expand commit body
Adds 3 more test cases where local variable should be preferred over
method, and local method over library methods.
Before / After:
<img height="280" alt="before-rust"
src="https://github.com/user-attachments/assets/72b34ce8-89ff-4c2b-87dc-9e63f855d31e"
/>
<img height="280" alt="after-rust"
src="https://github.com/user-attachments/assets/8e23c9ca-576c-4dc5-8946-fa37554a19e0"
/>
Before / After:
<img height="280" alt="before-react"
src="https://github.com/user-attachments/assets/f7070413-e397-441a-a0c1-16d8ce25aa12"
/>
<img height="280" alt="after-react"
src="https://github.com/user-attachments/assets/7a095954-7844-4a3e-bf59-5420b7ffdb03"
/>
Release Notes:
- N/A
Smit Barmase
created
d01559f
Add setting for enabling/disabling feedback (#30448)
Click to expand commit body
This is useful for enterprises, especially in combination with #30444,
to ensure code never gets sent to Zed.
Release Notes:
- N/A
Tristan Hume
created
645f662
workspace: Remove default keybindings for close active dock (#30691)
Thread doesn't run pending tools when `stop_reason` is not `ToolUse`.
Perhaps we should change that so that it always runs pending tools if
there are some, but for now this change just fixes setting `stop_reason`
for Google models.
Release Notes:
- N/A
Before

After

Release Notes:
- N/A
Nate Butler
created
4280bff
Reapply "ui: Account for padding of parent container during scrollbar layout" (#30577)
Click to expand commit body
This PR reapplies #27402 which was reverted in
https://github.com/zed-industries/zed/pull/30544 due to the issue
@ConradIrwin reported in
https://github.com/zed-industries/zed/pull/27402#issuecomment-2871745132.
The reported issue is already present on main but not visible, see
https://github.com/zed-industries/zed/pull/27402#issuecomment-2872546903
for more context and reproduction steps.
The fix here was to move the padding for the hover popover up to the
parent container. This does not fix the underlying problem but serves as
workaround without any disadvantages until a better solution is found. I
would currently guess that the underlying issue might be related to some
rem-size calculations for small font sizes or something similar (e.g.
https://github.com/zed-industries/zed/pull/22732 could possibly be
somewhat related).
Notably, the fix here does not cause any difference in layouting (the
following screenshots are actually distinct images), yet fixes the
problem at hand.
### Default font size (`15px`)
| `main` | This PR |
| --- | --- |
|

|
|
### Smaller font size (`12px`)
| `main` | This PR |
| --- | --- |
|

|

|
Furthermore, for the second scenario, the popover would be scrollable on
main. As there is no scrollbar in the second image for this PR, this no
longer happens with this branch.
Release Notes:
- N/A
Finn Evers
created
ea5b289
docs: Fix up some invalid JSON in OpenAI configuration example (#30663)
Thomas David Baker
created
0950333
project_settings: Fix default settings values for `DiagnosticsSettings` (#30686)
Click to expand commit body
Follow-up to #30565
This PR fixes the default settings values for the `DiagnosticsSettings`.
The issue here was that due to the `#[derive(Default)]`, `button` would
be false by default, which unintentionally hid the diagnostics button by
default. The `#[serde(default = `default_true`)]` would only apply iff
the diagnostics key was already present in the user's settings. Thus, if
you have
```json
{
"diagnostics": {...}
}
```
in your settings, the button would show (given it was not disabled).
However, if the key was not present, the button was not shown: Due to
the derived default for the entire struct, the value would be false.
This PR fixes this by implementing the default instead and moving the
`#[serde(default)]` up to the level of the struct.
I also did the same for the inline diagnostics settings, which already
had a default impl and thus only needed the serde default on the struct
instead of on all the struct fields.
Lastly, I simplified the title bar settings, since the serde attributes
previously had no effect anyway (deserialization happened in the
`TitlebarSettingsContent`, so these attributes had no effect) and we can
remove the `TitlebarSettingsContent` as well as the attributes if we
implement a proper default implementation instead.
Release Notes:
- Fixed the diagnostics status bar button being hidden by default.
1077f27
debugger: Fix launch picker program arg not using relative paths (#30680)
Click to expand commit body
Release Notes:
- N/A
Anthony Eid
created
f4eea0d
debugger: Fix panics when debugging with inline values or confirming in console (#30677)
Click to expand commit body
The first panic was caused by an unwrap that assumed a file would always
have a root syntax node.
The second was caused by a double lease panic when clicking enter in the
debug console while there was a completion menu open
Release Notes:
- N/A
Closes #ISSUE
Release Notes:
- Breaking change: The actions used while developing Zed have been
renamed from `debug:` to `dev:` to avoid confusion with the new debugger
feature:
- - `dev::OpenDebugAdapterLogs`
- - `dev::OpenSyntaxTreeView`
- - `dev::OpenThemePreview`
- - `dev::OpenLanguageServerLogs`
- - `dev::OpenKeyContextView`
255d8f7
agent: Overwrite files more cautiously (#30649)
Click to expand commit body
1. The `edit_file` tool tended to use `create_or_overwrite` a bit too
often, leading to corruption of long files. This change replaces the
boolean flag with an `EditFileMode` enum, which helps Agent make a more
deliberate choice when overwriting files.
With this change, the pass rate of the new eval increased from 10% to
100%.
2. eval: Added ability to run eval on top of an existing thread. Threads
can now be loaded from JSON files in the `SerializedThread` format,
which makes it easy to use real threads as starting points for
tests/evals.
3. Don't try to restore tool cards when running in headless or eval mode
-- we don't have a window to properly do this.
Release Notes:
- N/A
Oleksiy Syvokon
created
22f76ac
windows: Remove unneeded ranges for `replace_and_mark_text_in_range` (#30668)
Click to expand commit body
Release Notes:
- N/A
张小白
created
25cc05b
Use `Vec` instead of `SmallVec` for `glyphs` field of `ShapedRun` (#30664)
Click to expand commit body
This glyphs field is usually larger than 8 elements, and SmallVec is not
efficient when it cannot store the value inline.
This change also adds precise glyphs run preallocation in some places
`ShapedRun` is constructed.
Release Notes:
- N/A
Michael Sloan
created
a4766e2
Add tool result image support to Gemini models (#30647)
Click to expand commit body
Release Notes:
- Add tool result image support to Gemini models
- Focus the console's query bar (if it exists) when focusing the console
- Fix incorrect focus handles used for the console and terminal at the
`Subview` level
Release Notes:
- N/A
Co-authored-by: Piotr <piotr@zed.dev>
Co-authored-by: Anthony <anthony@zed.dev>
Cole Miller
,
Piotr
, and
Anthony
created
f1fe505
debugger: Show language icons in debug scenario picker (#30662)
Click to expand commit body
We attempt to resolve the language name in this order
1. Based on debug adapter if they're for a singular language e.g. Delve
2. File extension if it exists
3. If a language name exists within a debug scenario's label
In the future I want to use locators to also determine the language as
well and refresh scenario list when a new scenario has been saved
Release Notes:
- N/A
2b74163
context_editor: Allow copying entire line when selection is empty (#30612)
Click to expand commit body
Closes #27879
Release Notes:
- Allow copying entire line when selection is empty in text threads
Bennet Bo Fenner
created
71ea7ae
Misc optimization/cleanup of use of Cosmic Text on Linux (#30658)
Click to expand commit body
* Use cosmic_text `metadata` attr to write down the `FontId` from the
input run to avoid searching the list of fonts when laying out every
glyph.
* Instead of checking on every glyph if `postscript_name` is an emoji
font, just store `is_known_emoji_font`.
* Clarify why `font_id_for_cosmic_id` is used, and when its use is
valid.
Release Notes:
- N/A