v0.140.5
github-actions
released this
19 Jun 18:28
·
2403 commits
to main
since this release
Enhancements
General
- Added an Ollama Provider for the assistant. If you have Ollama running locally on your machine, you can enable it in your settings under:
"assistant": {
"version": "1",
"provider": {
"name": "ollama",
// Recommended setting to allow for model startup
"low_speed_timeout_in_seconds": 30,
}
}
Chat like usual
Interact with any model from the Ollama Library
Open up the terminal to download new models via ollama pull
:
- Added support for snippets via simple-completion-language-server (#4611). To begin using snippets, install the snippets extension from the extension store:
Place your snippet files in ~/.config/zed/snippets
. For instance, in your ~/.config/zed/snippets/snippets.json
file, you may have:
{
"my snippet": {
"prefix": "log",
"body": ["console.log(\"$1\")"],
"description": "Expand `log` to `console.log()`"
}
}
For more configuration information, see the simple-completion-language-server
instructions.
- Added the ability to search inside of selections (#8617).
- Improved the performance of the project panel in large directories
- Added the
editor: toggle tab bar
action. - Improved performance when handling large responses from language servers.
AI
- Added search for saved assistant history.
- Added
/now
command to the Assistant for getting the current date and time. - Improved the handling of JSON response bodies in the
/fetch
command in the Assistant.
Languages
- Added runnable tests for TSX files. Runnable tests can be customized via
tsx-test
tag. - Added support for linked editing ranges LSP request. Editing opening tags in HTML/TSX files (with vtsls) performs the same edit on the closing tag as well (and vice versa) (#4535).
- Added auto-completion support for
package.json
files (#12792). - Added support for looking up the
rust-analyzer
binary in$PATH
. This allows using such tools asasdf
and nix to configure per-folder rust installations. To enable this behavior, use thepath_lookup
key when configuring therust-analyzer
binary
:{"lsp": {"rust-analyzer": {"binary": {"path_lookup": true }}}}
. - Added
inl
to cpp config (#12605).
Vim
- Allowed scrolling the currently-open information overlay using
ctrl-{u,d,e,y}
etc (#11883). - Added
g/
for project search. - Added
gu
/gU
/g~
for changing case (#12565).
Bug Fixes
- Fixed some runnables in JavaScript/Typescript.
- Fixed an issue where the IME pre-edit could desynchronize from the editor on macOS (#11829).
- Fixed runnable for package.json, so it will work in any directory.
- Fixed a bug that caused titles generate by the LLM to be longer than one line.
- Fixed an issue where file icons were displayed in the project panel during a rename even when
project_panel.file_icons
was set tofalse
(#12905). - Fixed a panic when opening the diagnostics view.
- Fixed a crash that could happen when using certain cursor-motion bindings with a pending mouse selection.
- Fixed a panic when worktree paths are incorrectly relative.
- Fixed a panic when going to next search result when there are none.
- Fixed the wrong icon being used in the assistant setup instructions.
- Fixed
tailwindcss-language-server
not being activated inside Ruby strings (inside.erb
) (#12728).- Check the video here.
- Fixed
tailwind-language-server
not working in attributes inside of*.astro
files (#12402).- Check the video here.
- Fixed folder expansion when all items are closed (#12729).
- Vim: Fixed indent via
<
and>
not being repeatable with.
(#12351). - Vim: Fixed
f
/t
etc. for keys that require IME (#12522).
Breaking changes
- Renamed the
workspace::Restart
action toworkspace::Reload
to avoid accidentally restarting Zed when trying to restart language servers (#12609).