68e0bea
v0.132.x preview
Marshall Bowers created
68e0bea
v0.132.x preview
Marshall Bowers created
3c805d4
prisma: Bump to v0.0.2 (#10689)
This PR bumps the Prisma extension to v0.02. Changes: - The Prisma extension now provides its own `tab_size` setting ([#10296](https://github.com/zed-industries/zed/pull/10296)) Release Notes: - N/A
Marshall Bowers created
4f1861e
git blame: ignore uncommitted files or repos without commits (#10685)
This fixes useless error messages popping up in case a file hasn't been committed yet or the repo doesn't have commits yet. Release Notes: - Fixed git blame functionality not handling errors correctly when there are no commits yet or when file isn't committed yet.
Thorsten Ball created
d7becce
git: Only show inline git blame when editor is focused (#10680)
Release Notes: - N/A
Thorsten Ball created
6217138
Do not show tooltip for editor controls if clicked (#10679)
This avoids the tooltip showing up when the context menu is visible. It fixes this:  Release Notes: - N/A
Thorsten Ball created
47ad010
Backport documentation for inline git blame (#10677)
Only noticed this when editing zed.dev. Release Notes: - N/A
Thorsten Ball created
06987ed
project panel: Fix alignment of entries overflowing the panel. (#10676)
With file icons turned off, we still reserve space for an icon and make it invisible. However, that space was marked as flex, which made it shrink in case subsequent file name could not fit in the current width of the project panel. Fixes #10622 https://github.com/zed-industries/zed/assets/24362066/d565a03a-3712-49d1-bf52-407e4508a8cf Release Notes: - Fixed project panel entries misalignment with narrow panel & file icons turned off.
Piotr Osiewicz created
1e1a280
Document inline git blame (#10675)
Release Notes: - N/A
Thorsten Ball created
9782dd3
docs: Sync with zed.dev version (#10674)
This PR brings the docs in line with the version we have on https://zed.dev Release Notes: - N/A
Bennet Bo Fenner created
535bcfa
Update crates/ui/docs/hello-world.md TODO with explanation of SharedString usage (#10664)
Filled out a comment where there was a TODO to explain SharedString usage. Release Notes: - N/A
Keith created
c76bacb
Rename label to toggle inline git blame on/off (#10673)
cc @iamnbutler I think we should differentiate between inline blame and the gutter blame. Release Notes: - N/A
Thorsten Ball created
20554d0
Fix center element wrapper size (#10672)
Fixes https://github.com/zed-industries/zed/pull/9754#pullrequestreview-2005401133 Fixes https://github.com/zed-industries/zed/pull/9754#issuecomment-2060536590 Closes https://github.com/zed-industries/zed/pull/10669 * Updates the docs to use a proper max value for the centered layout padding (0.4 instead of 0.45) * Makes the `center` wrapper (`h_flex`) to be of size of the `center` element always, to ensure terminal lines are displayed correctly The letter fix is somewhat hacky: while it does the right thing right now, it does not prevent us from future mistakes like these, and does not explain why the bottom dock could be of one, smaller, height, and its contents, the terminal pane/terminal element/something else would think that it has a larger height, thus breaking the scrolling and rendering. cc @alygin if you're interested to solve another layout-related thing. Release Notes: - N/A
Kirill Bulatov created
2c78cf3
Regenerate git blame info when buffer's dirty bit changed (#10670)
This fixes the https://github.com/zed-industries/zed/issues/10583 by regenerating the blame information after the buffer is edited. It uses a debounce of 2seconds. Meaning that undone deletions show up again after 2secs. Release Notes: - Fixed `git blame` data not handling the undoing of deletions correctly. ([#10583](https://github.com/zed-industries/zed/issues/10583)).
Thorsten Ball created
c81eb41
Clear credentials state and delete keychain on SignOut request (#10558)
Release Notes: - Fixed ([#4716](https://github.com/zed-industries/zed/issues/4716)). --------- Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
Pedro Augusto da Silva Soares and Conrad Irwin created
c4e446f
./script/trigger-release (#10589)
Add `./script/trigger-release {nightly|stable|preview}`
This command can be run regardless of the state of your local git
repository, and it
either triggers a workflow run of `bump_patch_version.yml` (for
stable/preview) or
it force pushes the nightly tag.
Also add some docs on releases to explain all of this.
Release Notes:
- N/A
Conrad Irwin created
bc7eaa6
Add links to jobs page in README and in app, under help menu (#10658)
Release Notes: - N/A Co-authored-by: Nathan <nathan@zed.dev>
Max Brunsfeld and Nathan created
e93d554
Add Editor Controls Menu to Tool Bar (#10655)
This PR adds an editor controls menu to the tool bar. This menu will be used to contain controls that toggle visual features in the editor, like toggling inlay hints, showing git status or blame, hiding the gutter, hiding or showing elements in the tool bar, etc. For the moment, this consolidates the new Inline Git Blame toggle and the old Inlay Hints toggle. In the future it will contain additional controls. Before:  After:  --- Release Notes: - Added an editor controls menu to the tool bar. This will contain visual, editor-specific options like toggling inlay hints, showing git status or blame, etc. - Removed the top level inlay hint toggle from the tool bar due to the above change. - Added the ability to toggle inline git blame from the new editor controls menu. --------- Co-authored-by: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
Nate Butler and Marshall Bowers created
775539b
Fix order of migrations from #9754 (#10657)
This fixes a bug caused by mis-ordered database migration in #9754 Release Notes: - N/A
Mikayla Maki created
545319b
terraform: Bump to v0.0.2 (#10653)
This PR bumps the Terraform extension to v0.0.2. Changes: - #10641 Release Notes: - N/A
Marshall Bowers created
0b2de51
csharp: Bump to v0.0.2 (#10651)
This PR bumps the C# extension to v0.0.2. Changes: - #10638 Release Notes: - N/A
Marshall Bowers created
9a680da
clojure: Bump to v0.0.2 (#10650)
This PR bumps the Clojure extension to v0.0.2. Changes: - #10636 Release Notes: - N/A
Marshall Bowers created
4c35cfa
gleam: Bump to v0.1.1 (#10648)
This PR bumps the Gleam extension to v0.1.1. Changes: - #10635 Release Notes: - N/A
Marshall Bowers created
be2bf98
Show task summary in its terminal after it stops running (#10615)
Based on https://github.com/alacritty/alacritty/issues/7795 Unknown error code commands (now includes the interrupted ones):  Successful command:  Unsuccessful command:  The "design", including wordings and special characters, is not final, suggestions are welcome. The main idea was to somehow distinguish the appended lines without occupying extra vertical space. Release Notes: - Added task summary output into corresponding terminal tabs
Kirill Bulatov created
4eb1e65
Add centered layout support (#9754)
This PR implements the Centered Layout feature (#4685):
- Added the `toggle centered layout` action.
- The centered layout mode only takes effect when there's a single
central pane.
- The state of the centered layout toggle is saved / restored between
Zed restarts.
- The paddings are controlled by the `centered_layout` setting:
```json
"centered_layout": {
"left_padding": 0.2,
"right_padding": 0.2
}
```
This allows us to support both the VSCode-style (equal paddings) and
IntelliJ-style (only left padding in Zen mode).
Release Notes:
- Added support for Centered Layout
([#4685](https://github.com/zed-industries/zed/pull/9754)).
https://github.com/zed-industries/zed/assets/2101250/2d5b2a16-c248-48b5-9e8c-6f1219619398
Related Issues:
- Part of #4382
Andrew Lygin created
5259190
lua: Bump to v0.0.2
The previous v0.0.3 bump was in error, as we hadn't published a v0.0.2 yet.
Marshall Bowers created
d2e83cc
lua: Bump to v0.0.3 (#10646)
This PR bumps the Lua extension to v0.0.3. Changes: - #10639 - #10642 Release Notes: - N/A
Marshall Bowers created
f633460
zig: Bump to v0.1.1 (#10645)
This PR bumps the Zig extension to v0.1.1. Changes: - #10559 - #10634 Release Notes: - N/A
Marshall Bowers created
9470a52
lua: Fix broken LuaLS download on x64 (#10642)
The changes in #10437 accidentally switched 'x64' to 'x86_64' which
breaks installs on linux x64, macos x64 and windows x64. This yields the
following error:
```
[2024-04-16T12:58:01-04:00 ERROR project] failed to start language server "lua-language-server": no asset found matching "lua-language-server-3.7.4-darwin-x86_64.tar.gz"
[2024-04-16T12:58:01-04:00 ERROR project] server stderr: Some("")
```
It's trying to download:
`lua-language-server-3.7.4-darwin-x86_64.tar.gz`
which should be
`lua-language-server-3.7.4-darwin-x64.tar.gz`
See [LuaLS release
page](https://github.com/LuaLS/lua-language-server/releases/tag/3.6.25).
CC: @maxbrunsfeld
lua.rs before ef4c70c:
https://github.com/zed-industries/zed/blob/c6028f665182403a035af193a3f27021f6e57c67/crates/languages/src/lua.rs#L35
lua.rs after:
https://github.com/zed-industries/zed/blob/5d7148bde108bd59ca20f297fcebbcb9b8c27452/extensions/lua/src/lua.rs#L49
Release Notes:
- N/A
Peter Tripp created
fa0302f
terraform: Don't cache user-installed `terraform-ls` (#10641)
This PR updates the Terraform extension to not cache the binary when it is using the one on the $PATH. Release Notes: - N/A
Marshall Bowers created
5d7148b
lua: Don't cache user-installed `lua-language-server` (#10639)
This PR updates the Lua extension to not cache the binary when it is using the one on the $PATH. Release Notes: - N/A
Marshall Bowers created
58991f3
csharp: Don't cache user-installed `OmniSharp` (#10638)
This PR updates the C# extension to not cache the binary when it is using the one on the $PATH. Release Notes: - N/A
Marshall Bowers created
9c569c8
zig: Rename `cached_binary` to `cached_binary_path` (#10637)
This PR renames the `cached_binary` field on the `ZigExtension` back to `cached_binary_path` to make it match the other extensions. Release Notes: - N/A
Marshall Bowers created
1ba0bf9
clojure: Don't cache user-installed `clojure-lsp` (#10636)
This PR updates the Clojure extension to not cache the binary when it is using the one on the $PATH. Release Notes: - N/A
Marshall Bowers created
53105dd
gleam: Don't cache user-installed `gleam` (#10635)
This PR updates the Gleam extension to not cache the binary when it is using the one on the $PATH. Release Notes: - N/A
Marshall Bowers created
210f8eb
zig: Do not cache user-installed `zls` (#10634)
This was a bug introduced when moving to extensions: when we find a binary in the user's project environment, we shouldn't cache that globally since it might not work for other projects. See also: https://github.com/zed-industries/zed/pull/10559 Release Notes: - N/A
Thorsten Ball created
c015b5c
Enable inline-git-blame by default (#10632)
Release Notes: - N/A
Thorsten Ball created
c1c8a74
Add ability to specify binary path/args for clangd (#10608)
This uses the language server settings added in #9293 to allow users to
specify the binary path and arguments with which to start up `clangd`.
Example user settings for `clangd`:
```json
{
"lsp": {
"clangd": {
"binary": {
"path": "/usr/bin/clangd",
"arguments": ["--log=verbose"]
},
}
}
}
```
Constraints:
* Right now this only allows ABSOLUTE paths.
Release Notes:
- Added ability to specify `clangd` binary `path` (must be absolute) and
`arguments` in user settings. Example: `{"lsp": {"clangd": {"binary":
{"path": "/usr/bin/clangd", "arguments": ["--log=verbose"] }}}}`
Henrique Ferreiro created
2f00fcb
docs: use_autoclose (#10514)
Add some keywords (bracket, quote, etc)to the comments describing `use_autoclose` preference in the settings json. This setting took me a while to find -- so now it'll be more easily searchable for others. Release Notes: - N/A
Peter Tripp created
5c5fb97
Handle setting git blame delay to 0 (#10626)
Release Notes: - N/A
Thorsten Ball created
7928095
chore: parse cli args just once in zed crate (#10613)
Release Notes: - N/A
Piotr Osiewicz created
70c3ca4
Fix toggling of inline git blame when it's delayed (#10620)
Release Notes: - N/A
Thorsten Ball created
d49271a
Use project search action with the default keybinding in app menus (#10618)
Fixes https://github.com/zed-industries/zed/issues/10611 Zed has `workspace::NewSearch` (without a default keybinding) and `workspace::DeploySearch` (with the default keybinding for its `DeploySearch::find()` form). Use the one with the keybinding, as it's the whole point of the menu. Release Notes: - Fixed "Find In Project" app menu item having no keybinding ([10611](https://github.com/zed-industries/zed/issues/10611))
Kirill Bulatov created
e34c443
lsp: Do not set error/result fields if they're missing. (#10610)
We were previously not conforming to LSP spec, as we were setting **both** result field and error field on response fields, which could confuse servers. Excerpt from the spec: > * The result of a request. This member is REQUIRED on success. > * This member MUST NOT exist if there was an error invoking the method. Fixes #10595 Release Notes: - N/A
Piotr Osiewicz created
2630230
Show Zoom In/Out shortcuts in the labels (#10604)
Based on https://github.com/zed-industries/zed/discussions/10599 Does the same as the assistant tab with the Zoom In/Out labels.  Release Notes: - Adjusted Zoom In/Out for Pane and Terminal Pane to show keybinding labels
Kirill Bulatov created
7e1a184
Fix Markdown code rendering in tooltips ignoring languages (#10607)
Some code blocks that are returned in tooltips (returned by language
servers, for example) use the language file extension as the language in
the the triple-backtick code blocks.
Example:
```rs
fn rust_code() {}
```
```cpp
fn rust_code() {}
```
Before this change we only looked up the language with the
`rs`/`cpp`/... being interpreted as the language name. Now we also treat
it as a possible file extension.
Release Notes:
- Fixed Markdown code blocks in tooltips not having correct language
highlighting.
Before:

After:

Co-authored-by: Bennet <bennetbo@gmx.de>
Thorsten Ball and Bennet created
c834ea7
Fix `---` in Markdown docs not rendered correctly (#10606)
This fixes #10511 by turning off the YAML metadata block rendering in
the Markdown parser.
`clangd` uses `---` as dividers, but our parser interpreted it as a YAML
metadata block, even though it didn't contain any valid YAML.
Example Markdown from `clangd`:
### instance-method `format`
---
→ `void`
Parameters:
- `const int &`
- `const std::tm &`
- `int & dest`
---
```cpp
// In my_formatter_flag
public: void format(const int &, const std::tm &, int &dest)
```
What's between the two `---` is *not* valid YAML. Neovim, too,
interprets these as dividers and renders them as such.
And since we don't handle any possible metadata anyway, we can turn off
the metadata handling, which causes the parser to interpret the `---` as
dividers.
Release Notes:
- Fixed Markdown returned by `clangd` being rendered the wrong way.
([#10511](https://github.com/zed-industries/zed/issues/10511)).
Before:

After:

Co-authored-by: Bennet <bennetbo@gmx.de>
Thorsten Ball and Bennet created
4d8cba2
Fix long git author names/emails overflowing blame tooltip (#10605)
This fixes https://github.com/zed-industries/zed/issues/10581. Release Notes: - N/A Co-authored-by: Bennet <bennetbo@gmx.de>
Thorsten Ball and Bennet created
08aef19
Fix inline blame annotations handling wrapped lines (#10600)
Fixes inline blame not being displayed correctly for soft-wrapped lines. (Can't find the ticket)  Release Notes: - N/A
Thorsten Ball created
2cfb1ff
add a setting to control show/hide terminal button for status bar (#10593)
Release Notes:
- Added a setting to show/hide the terminal button in the status bar:
`{"terminal": {"button": false}}` to hide it. (#10513)
---------
Co-authored-by: Thorsten Ball <mrnugget@gmail.com>
Hans and Thorsten Ball created
f3192b6
Fix scrollbar marker settings (#10530)
Zed displays scrollbar markers of three types: git diffs, background highlights and diagnostics. At the moment, the "background highlights" markers are displayed for all the supported highlights: - Occurences of the symbol under cursor. - Search results. - Scope boundaries (only works when a symbol is selected). - Active hover popover position. They all use the same color, which leads to confusing results. For instance, in the following case I expect to see markers for the `new_anchor` occurences in lines 43 and 47. But besides them, there're also scope-markers for `ScrollAnchor` initialization block in lines 46 and 49, which makes me think that there're four places where `new_anchor` appears. <img width="740" alt="zed-scrollbar-markers" src="https://github.com/zed-industries/zed/assets/2101250/78700e6b-fdd1-4c2f-beff-e564d8defc13"> Existing settings `selection` and `symbol_selection` in the `scrollbar` section [don't work as expected](https://github.com/zed-industries/zed/pull/10080#discussion_r1552325493), which increases confusion. This PR only leaves two types of bg-highlight-markers and provides dedicated settings for them: - Occurences of the symbol under cursor. Setting: `selected_symbol`, default is `true`. - Search results. Setting: `search_results`, default is `true`. The `selection` and `symbol_selection` settings are not used anymore. Release Notes: - Breaking changes. Settings `selection` and `symbol_selection` in the `scrollbar` section renamed to `search_results` and `selected_symbol` respectively. Fixed the effect of these settings on which markers are displayed on the scrollbar. Optionally, include screenshots / media showcasing your addition that can be included in the release notes. - N/A /cc @mrnugget
Andrew Lygin created