b4b2e55
v0.170.x stable
Peter Tripp created
b4b2e55
v0.170.x stable
Peter Tripp created
365398a
open_ai: Move from o1-preview to o1 for OpenAI Assistant provider (#23425)
- Closes: https://github.com/zed-industries/zed/issues/22521 - Follow-up to: https://github.com/zed-industries/zed/pull/22376
Peter Tripp created
058bdae
ollama: Add deepseek-r1 context size to defaults (#23420)
Peter Tripp created
a64b75f
zed 0.170.1
Peter Tripp created
c251987
Fix completion labels becoming overly large due to LSP completion items with newlines (cherry-pick #23407) (#23409)
Cherry-picked Fix completion labels becoming overly large due to LSP completion items with newlines (#23407) Reworks https://github.com/zed-industries/zed/pull/23030 and https://github.com/zed-industries/zed/pull/15087 Closes https://github.com/zed-industries/zed/issues/23352 Closes https://github.com/zed-industries/zed/issues/23310 Zed's completion items use `label` from LSP completion items as a base to show in the list: https://github.com/zed-industries/zed/blob/d290da7dac922fdc67c4774cdd371fba23fe62e3/crates/project/src/lsp_store.rs#L4371-L4374 Besides that, certain language plugins append `detail` or `label_details.description` as a suffix: https://github.com/zed-industries/zed/blob/d290da7dac922fdc67c4774cdd371fba23fe62e3/crates/languages/src/vtsls.rs#L178-L188 Either of these 3 properties may return `\n` (or multiple) in it, spoiling Zed's completion menu, which uses `UniformList` to render those items: a uniform list uses common, minimum possible height for each element, and `\n` bloats that overly. Good approach would be to use something else: https://github.com/zed-industries/zed/issues/21403 but that has its own drawbacks and relatively hard to use instead (?). We could follow VSCode's approach and move away all but `label` from `CodeLabel.text` to the side, where the documentation is, but that does not solve the issue with `details` having newlines. So, for now, sanitize all labels and remove any newlines from them. If newlines are found, also replace whitespace sequences if there's more than 1 in a row. Later, this approach can be improved similarly to how Helix and Zed's inline completions do: rendering a "ghost" text, showing the completion's edit applied to the editor. Release Notes: - Fixed completion labels becoming overly large due to LSP completion items with newlines Co-authored-by: Kirill Bulatov <kirill@zed.dev>
gcp-cherry-pick-bot[bot] and Kirill Bulatov created
8a90fa1
Fix older Anthropic models not supporting `-latest` tags (#23372)
- Closes: https://github.com/zed-industries/zed/issues/22322
Peter Tripp created
eadddc6
keybindings: Fix AcceptPartialInlineCompletion on macOS (#23357)
Related issue: https://github.com/zed-industries/zed/issues/20167 Release Notes: - Changed the default keybinding to accept partial inline completions from `ctrl-right` to `ctrl-cmd-right` on macOS, because `ctrl-right` is already bound to jump to the end of the line. Co-authored-by: Antonio <antonio@zed.dev> Co-authored-by: Kirill <kirill@zed.dev> Co-authored-by: Bennet <bennet@zed.dev>
Thorsten Ball , Antonio , Kirill , and Bennet created
ea02a95
editor: Hide horizontal scrollbar if not visible (cherry-pick #23337) (#23339)
Cherry-picked editor: Hide horizontal scrollbar if not visible (#23337) This PR fixes two visual issues, that were caused by the fact that we were always painting the horizontal scrollbar even if there is no horizontal scrolling possible Obscuring deleted lines when using the inline assistant: https://github.com/user-attachments/assets/f8460c3f-403e-40a6-8622-65268ba2d875 Cutting off text even when horizontal scrolling is not possible: https://github.com/user-attachments/assets/23c909f7-1c23-4693-8edc-40a2f089d4a8 This issue was only present in some themes (e.g. Nord, Catpuccin) Closes #22716 Release Notes: - Fixed an issue where horizontal scrollbars of editors would always be painted (even if there is no horizontal scrolling to be done) Co-authored-by: Bennet Bo Fenner <bennet@zed.dev>
gcp-cherry-pick-bot[bot] and Bennet Bo Fenner created
fba2828
Fix accepting partial inline completion (cherry-pick #23312) (#23327)
Cherry-picked Fix accepting partial inline completion (#23312) Release Notes: - Fixed a bug that could prevent accepting a partial inline completion. Co-authored-by: Antonio Scandurra <me@as-cii.com>
gcp-cherry-pick-bot[bot] and Antonio Scandurra created
ce3752d
v0.170.x preview
Peter Tripp created
88cb9bb
Add fn-f keyboard shortcut for Fullscreen (mac-only) (#23184)
- See: https://github.com/zed-industries/zed/issues/22674#issuecomment-2593133447 Release Notes: - macos: Added `fn-f` keyboard shortcut for fullscreen toggle.
Peter Tripp created
61db8be
ci: Cleanup for disabled Merge Queue / merge_group (#23187)
Only run actions dependency-review-action if running in a PR action. This broke when run as part of action for commit on main and on a preview branch: - https://github.com/zed-industries/zed/actions/runs/12793068921/job/35664998296 - https://github.com/zed-industries/zed/actions/runs/12793045639 Originally introduced in: - https://github.com/zed-industries/zed/pull/21424 But was only tested with `merge_group` which has since been reverted.
Peter Tripp created
72f1b32
project_panel: Remove useless comments (#23186)
This PR removes some comments in the `project_panel` that are just restating what the code is doing. Release Notes: - N/A
Marshall Bowers created
0150eaf
Revert docs-only test-skipping with Merge Queue (#23180)
These checks were not functioning as intended. Notably tests were skipped for today's hotfix release of Preview [v0.169.2-pre](https://github.com/zed-industries/zed/actions/runs/12790602047): Separately these checks were flawed as they would only be considered "docs only" if the diff between the PR branch base and main also did not have any subsequent non-docs changes. Reverting until we can figure out something better.
Peter Tripp created
cc8746a
Increase timeout for macos release builds (#23183)
Today's Preview hotfix timed out during notarization: - https://github.com/zed-industries/zed/actions/runs/12790602047/job/35656767355
Peter Tripp created
f50a118
Refactor shell wrapping (#23108)
I want to use this to implement ! in vim, so move it from terminal_view to task, and split windows/non-windows more cleanly. Release Notes: - N/A
Conrad Irwin created
45198f2
Add "tool" support to go.mod (#22995)
Closes #ISSUE Release Notes: - Fixed highlighting of ["tool" directives](https://tip.golang.org/doc/go1.24#tools) in go.mod
Conrad Irwin created
67525cc
Add ollama phi4 context size defaults (#23036)
Add `phi4` maximum context length (128K).
By default this clamps to `16384` but if you have enough video memory
you can set it higher or connect to a non-local machine via settings:
```json
"language_models": {
"ollama": {
"api_url": "http://localhost:11434",
"available_models": [
{
"name": "phi4",
"display_name": "Phi4 64K",
"max_tokens": 65536
}
]
}
}
```
Release Notes:
- Improve support for Phi4 with ollama.
Peter Tripp created
0e4a619
Revert "Log an error when there are no buffer snapshots for some LSP version (#22934)" (#23179)
https://github.com/zed-industries/zed/pull/22934#issuecomment-2592239448 and myself had noted quite an increase in junk logging after that: https://github.com/user-attachments/assets/b678d4ec-c301-4d0e-9a12-99aa7f6da0a2 Release Notes: - N/A
Kirill Bulatov created
74620e6
Improve performance of go-to-diagnostic when many diagnostics are present (#23166)
Instead of eagerly calling `to_offset` on the anchor ranges for each diagnostic in the direction of the search, work lazily in terms of anchors and convert to offsets at the very end. Release Notes: - N/A
Cole Miller created
9d3a059
Exclude function keys from input handler (#23070)
Fixes #22674 Release Notes: - Fixed a bug binding to `fn-X` (where X is a printing key) on macOS
Conrad Irwin created
b1cfc11
edit prediction: Fix width of completion item (#23177)
Release Notes: - N/A Co-authored-by: Agus <agus@zed.dev> Co-authored-by: Bennet <bennet@zed.dev> Co-authored-by: Antonio <antonio@zed.dev>
Thorsten Ball , Agus , Bennet , and Antonio created
4a76302
Check for `predict-edits` feature flag, remove `is_staff` check (#23165)
Release Notes: - N/A --------- Co-authored-by: Thorsten Ball <mrnugget@gmail.com>
Agus Zubiaga and Thorsten Ball created
da8e65b
Show loading state for predictions (#23172)
Release Notes: - N/A --------- Co-authored-by: Thorsten <thorsten@zed.dev> Co-authored-by: Danilo Leal <daniloleal09@gmail.com> Co-authored-by: Agus Zubiaga <hi@aguz.me>
Antonio Scandurra , Thorsten , Danilo Leal , and Agus Zubiaga created
bf75b33
vim: Fix inline completions not disappearing in normal mode (#23176)
Closes #23042 Release Notes: - Fixed inline completions (Copilot, Supermaven, ...) still being visible sometimes after leaving Vim's insert mode.
Thorsten Ball created
bd3f64c
zeta: Allow viewing prompt details in rate completion modal (#23142)
Co-Authored-by: Danilo <danilo@zed.dev> Release Notes: - N/A --------- Co-authored-by: Danilo <danilo@zed.dev> Co-authored-by: Danilo Leal <daniloleal09@gmail.com> Co-authored-by: Thorsten Ball <mrnugget@gmail.com>
Bennet Bo Fenner , Danilo , Danilo Leal , and Thorsten Ball created
ae74693
settings: Rename 'zeta' to 'zed' (#23174)
Old:
```settings.json
{
"features": {
"inline_completion_provider": "zeta"
}
}
```
New & cool:
```settings.json
{
"features": {
"inline_completion_provider": "zed"
}
}
```
Release Notes:
- N/A
Thorsten Ball created
37c2ebe
Revert "linux: Fix saving file with root ownership (#22045)" (#23162)
Release Notes: - (temporarily) Removes the linux "save file as root" feature while we figure out bugs. Updates https://github.com/zed-industries/zed/pull/22045
Conrad Irwin created
e86fe1d
Fix git commands for staging and unstaging (#23147)
This fixes a bug that prevents unstaging added files. I've also removed the batching/debouncing logic in the long-running task that launches the git invocations---I added this originally but I don't think it's really necessary. Release Notes: - N/A
Cole Miller created
de6216a
ui: Move `IconDecoration` and `DecoratedIcon` to their own modules (#23157)
This PR moves the `IconDecoration` and `DecoratedIcon` components to their own modules. Release Notes: - N/A
Marshall Bowers created
167c564
theme: Pull directory and chevron icons out of `IconTheme::file_icons` (#23155)
This PR pulls the directory and chevron icons out of the `IconTheme::file_icons` collection and promotes them to named fields. This makes things less stringly-typed when looking up these icons. Release Notes: - N/A
Marshall Bowers created
1178b3e
gpui: Clean up `AppContext` doc comments (#23154)
This PR cleans up some doc comments for the `AppContext. Release Notes: - N/A
Marshall Bowers created
88e42cc
Refactor file icons to use `IconTheme` (#23153)
This PR adds the initial concept of an `IconTheme` and refactors `FileIcons` to use it to resolve the icons. The `IconTheme` will ultimately be used to allow users to select a different set of icons to use. Currently, however, this is just laying the foundation for that work. The association between file types and icons is now handled by the icon theme when we resolve file icons. This mapping has been moved out of `file_types.json` and into `icon_theme.rs`. Release Notes: - N/A
Marshall Bowers created
07d5824
assistant2: Revise thread visual design (#23083)
This PR adjusts the design of the assistant 2 threads with the goal of reducing visual busyness. My intention is to remove the amount of lines and borders given it is a relatively tight space. It also refines the "generating" floating container style, finally leveraging linear gradients that were recently added to GPUI! Now, we only display headers for "you" messages. Assistant responses will be rendered right in the panel; not bounded by a card container. <img width="800" alt="Screenshot 2025-01-14 at 7 08 39 PM" src="https://github.com/user-attachments/assets/a8ffa780-0ef2-4d4b-ae19-3f02fd2d63a6" /> Release Notes: - N/A
Danilo Leal created
077767a
Migrate more events to telemetry::event (#22178)
Release Notes: - N/A
Joseph T. Lyons created
b7fd571
Revert "Add emacs keybindings for mark emulation" (#23146)
- Reverts zed-industries/zed#22904 - See also: https://github.com/zed-industries/zed/issues/8580 After using it full-time for a day I very much think an implicit "mark mode" when the emacs base keymap is enabled is the wrong approach. Release Notes: - Reverted "Add emacs keybindings for mark emulation" #23146 (main only)
Peter Tripp created
c038696
Add LM Studio support to the Assistant (#23097)
#### Release Notes: - Added support for [LM Studio](https://lmstudio.ai/) to the Assistant. #### Quick demo: https://github.com/user-attachments/assets/af58fc13-1abc-4898-9747-3511016da86a #### Future enhancements: - wire up tool calling (new in [LM Studio 0.3.6](https://lmstudio.ai/blog/lmstudio-v0.3.6)) --------- Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
Yagil Burowski and Marshall Bowers created
4445679
Fix a typo in the task example (#23148)
Release Notes: - N/A
Kirill Bulatov created
a3e7444
Git panel polish (#23144)
- Clicking checkbox in the header stages or unstages all changes - Adds tooltips to header checkbox - Addis the ability for checkboxes to have tooltips - Ensure an entry in the list is always selected - Hide revert all button for now Release Notes: - N/A
Nate Butler created
d13d099
git: Restore basic jump-to-file functionality (#23140)
This just opens the file for the selected `GitListEntry` right now; we'll add back integration with the project diff view later. Release Notes: - N/A --------- Co-authored-by: Nate <nate@zed.dev>
Cole Miller and Nate created
de5f023
assistant2: Cancel generation button (#23137)
Turns the "esc to cancel" label into a button so it can be dispatched via click or keyboard. The keybinding isn't hardcoded anymore.  Release Notes: - N/A
Agus Zubiaga created
4febc7e
assistant2: Cancel pending completion when an error occurs (#23143)
This PR makes it so the pending completion is cleared when an error occurs. This makes it so `Thread::is_streaming()` will return `false` in the error case (and thus hide the streaming indicator in the UI). Release Notes: - N/A
Marshall Bowers created
c33eb01
Change tooltip to 'Edit Prediction' (#23139)
Release Notes: - N/A
Thorsten Ball created
1ddf754
zeta: Rework displaying paths in completion rating modal (#23129)
Two issues i ran into while looking at the completion rating modal - Single-file worktrees file names are not displayed at all - Hard to see the filename when the path is long (lots of directories) This PR fixes this by displaying the filename on the left, followed by the full path (including the worktree name), similar to how we do it in the file finder/assistant panel /file command | Before | After | |--------|--------| | <img width="1067" alt="Screenshot 2025-01-14 at 16 09 05" src="https://github.com/user-attachments/assets/628fde18-da9a-4d98-8ddf-ed0ab0cd8d35" /> | <img width="1161" alt="Screenshot 2025-01-14 at 16 17 52" src="https://github.com/user-attachments/assets/80c6a4e1-065d-4b0a-b9c0-5f3391af4557" /> | Release Notes: - N/A
Bennet Bo Fenner created
91b36c3
environments: Don't load shell environments in non-local worktrees (#23138)
This fixes an error message that has shown up for me when joining collab projects: "Unable to load shell environment in /<path on another machine/" Release Notes: - Fixed error message about shell environment failing to load when joining projects in collaboration.
Thorsten Ball created
39ac6e4
assistant2: Navigate context strip with keyboard (#23128)
Context pills are now focusable and intractable via the keyboard. - <kbd>←</kbd> and <kbd>→</kbd> move the focus to the previous or next item (wrapping if necessary) - <kbd>↓</kbd> and <kbd>↑</kbd> move the focus vertically - If the cursor is in the first/last row of the assistant/inline editor, they will move the focus to the strip - Inside the strip, they will move the focus to the pill horizontally overlapping the most - If already in the first/last row of the strip, they will move to the first/last pill (like in editors) - If the first/last pill is focused, they will move the focus back to the editor - <kbd>⌫</kbd> removes the focused pill (unless it's the suggested one) - <kbd>⏎</kbd> accepts the suggested pill if focused https://github.com/user-attachments/assets/040bc71c-a3ae-4961-9886-2d5c3d290a73 Release Notes: - N/A
Agus Zubiaga created
78fd5b5
git_ui: Add Git Panel settings (#23132)
This PR adds settings for the Git Panel.
The new settings include:
| Setting | Description | Default |
|---------|-------------|---------|
| `git_panel.button` | Toggle visibility of the Git Panel button in the
status bar | `true` |
| `git_panel.dock` | Choose where to dock the Git Panel | `"left"` |
| `git_panel.default_width` | Set the default width of the Git Panel in
pixels | `360` |
| `git_panel.status_style` | Select how Git status is displayed |
`"icon"` |
| `git_panel.scrollbar.show` | Configure scrollbar behavior | Inherits
from editor settings |
Example usage:
```json
"git_panel": {
"button": true,
"dock": "left",
"default_width": 360,
"status_style": "icon",
"scrollbar": {
"show": "auto"
}
}
```
Release Notes:
- N/A
Nate Butler created
a677096
zeta: Various product fixes before Preview release (#23125)
Various fixes for Zeta and one fix that's visible to non-Zeta-using users of inline completions. Release Notes: - Changed inline completions (Copilot, Supermaven, ...) to not show up in empty buffers. --------- Co-authored-by: Antonio <antonio@zed.dev> Co-authored-by: Antonio Scandurra <me@as-cii.com> Co-authored-by: Bennet <bennet@zed.dev>
Thorsten Ball , Antonio , Antonio Scandurra , and Bennet created
1b3b825
lsp: Parse LSP messages on background thread - again (#23122)
This is a follow-up to #12640. While profiling latency of working with a project with 8192 diagnostics I've noticed that while we're parsing the LSP messages into a generic message struct on a background thread, we can still block the main thread as the conversion between that generic message struct and the actual LSP message (for use by callback) is still happening on the main thread. This PR significantly constrains what a message callback can use, so that it can be executed on any thread; we also send off message conversion to the background thread. In practice new callback constraints were already satisfied by all call sites, so no code outside of the lsp crate had to be adjusted. This has improved throughput of my 8192-benchmark from 40s to send out all diagnostics after saving to ~20s. Now main thread is spending most of the time updating our diagnostics sets, which can probably be improved too. Closes #ISSUE Release Notes: - Improved app responsiveness with huge # of diagnostics.
Piotr Osiewicz created
8e65ec1
Disable Prettier for C projects by default (#23119)
Follow-up of https://github.com/zed-industries/zed/pull/23112 Same reasoning applies. Release Notes: - Changed default formatter for C to be the primary language server, not Prettier. Format-on-save is still disabled by default for C, but if one uses the editor: format command now, it will default to the language server. clangd can format C files, whereas prettier cannot.
Kirill Bulatov created