bc0dd3a
Don't iterate over all system processes (cherry-pick #11281) (#11285)
Click to expand commit body
Cherry-picked Don't iterate over all system processes (#11281)
Release Notes:
- Fixed a UI beachball when gathering process information
Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
9529e36
Only keep one blame up-to-date (cherry-pick #11274) (#11277)
Click to expand commit body
Cherry-picked Only keep one blame up-to-date (#11274)
I was experiencing hang, and we blamed it on spawning a few hundred git
processes
simultaneously.
cc @MrNugget
Release Notes:
- Fixed slowness with hundreds of buffers open doing git blame.
Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
gcp-cherry-pick-bot[bot]
and
Conrad Irwin
created
932555a
Use HIGH priority to wake blocked timers (cherry-pick #11269) (#11278)
Click to expand commit body
Cherry-picked Use HIGH priority to wake blocked timers (#11269)
One contributor to some beach-balls was that the main thread was calling
block_with_timeout, but the timeout never fired.
Release Notes:
- Reduced main thread hangs under very high system load
Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
eb4ac7e
Suggest the SCSS extension for `.scss` files (#11249)
Click to expand commit body
This PR adds a suggestion for the new [SCSS
extension](https://github.com/bajrangCoder/zed-scss) when `.scss` files
are opened.
Release Notes:
- Added a suggestion for the SCSS extension when `.scss` files are
opened.
Contributes: #11168
https://developer.apple.com/documentation/corefoundation/1542428-cfrunloopgetcurrent
implies that we should be `CFRetain`ing the run loop.
Lets do that, and see if it reduces the number of crashes we see.
Release Notes:
- (maybe) Fix a rare crash in watching settings files.
Conrad Irwin
created
45cf101
Add MimeType to open directory with zed (#11238)
Click to expand commit body
Release Notes:
- open directory using context menu (Right click -> open with -> zed).
Zorin FOSS
created
f39a242
Adjust the yss surrounds operator (#11212)
Click to expand commit body
For #11084 In the case of an indentation in front of the current line,
it may also be necessary to deal with the start point of the selected
range
Release Notes:
- N/A
---------
Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
Hans
and
Conrad Irwin
created
c9778a3
Use Elixir LS as the default language server for Elixir (#11234)
Click to expand commit body
This PR adds `language_servers` settings for Elixir and HEEX to ensure
they both only use Elixir LS by default.
Eventually we'd like to have these provided by the Elixir extension, but
there are some outstanding questions on the design.
For now we can just use the built-in default settings to ensure a good
out-of-the-box experience for Elixir users.
Release Notes:
- N/A
Marshall Bowers
created
d1abbb1
assistant2: Refine editing of previous messages (#11233)
Click to expand commit body
This PR refines the UX of editing a previous message, including the
following:
- Focus the prev message body editor on double-click
- Restore previous body text on cancel
- Cancel pending completion upon submission of previous message
- Drive-by: Remove min height on composer editor
Release Notes:
- N/A
---------
Co-authored-by: Marshall Bowers <marshall@zed.dev>
This PR sets up the `assistant2` crate with the storybook so that UI
elements can be iterated on in isolation.
To start, we have some stories for the `ChatMessage` component:
```sh
cargo run -p storybook -- components/assistant_chat_message
```
<img width="1233" alt="Screenshot 2024-04-30 at 5 20 03 PM"
src="https://github.com/zed-industries/zed/assets/1486634/510967ea-0e9b-4fa9-94fb-421ee74bcc45">
Release Notes:
- N/A
Marshall Bowers
created
96b1fc4
assistant2: Align chat messages with composer (#11227)
Click to expand commit body
This PR adds some additional spacing to the composer so it aligns with
the chat messages.
Release Notes:
- N/A
cb73501
Don't allow dropping files on remote projects (#11218)
Click to expand commit body
Release Notes:
- Fixed a panic when a remote participant dropped a local file on your
project
Conrad Irwin
created
f11a781
assistant2: Use composer for editing inline messages (#11222)
Click to expand commit body
This PR updates the assistant to render historical user messages the
same as ones from the assistant.
Double-clicking on a message will open a composer inline for editing.
Pressing `Esc` will cancel the edit.
We don't yet restore the previous state of the message upon canceling.
<img width="401" alt="Screenshot 2024-04-30 at 4 04 01 PM"
src="https://github.com/zed-industries/zed/assets/1486634/5f253fa8-6578-4054-be30-c495e326d700">
<img width="401" alt="Screenshot 2024-04-30 at 4 04 28 PM"
src="https://github.com/zed-industries/zed/assets/1486634/edf25cea-d97e-44d2-8772-3690eac017a4">
Release Notes:
- N/A
* [x] Fixed an issue where embeddings would be assigned incorrectly to
files if a subset of embedding batches failed
* [x] Added a command to debug which paths are present in the semantic
index
* [x] Determine why so many paths are often missing from the semantic
index
* we erroring out if an embedding batch contained multiple texts that
were the same, which can happen if a worktree contains multiple copies
of the same text (e.g. a license).
Release Notes:
- N/A
---------
Co-authored-by: Marshall <marshall@zed.dev>
Co-authored-by: Nathan <nathan@zed.dev>
Co-authored-by: Kyle <kylek@zed.dev>
Co-authored-by: Kyle Kelley <rgbkrk@gmail.com>
Max Brunsfeld
,
Marshall
,
Nathan
,
Kyle
, and
Kyle Kelley
created
This PR adds a new tool to the `assistant2` crate that allows the
assistant to create a new buffer with some content.
Release Notes:
- N/A
---------
Co-authored-by: Nathan <nathan@zed.dev>
Marshall Bowers
and
Nathan
created
ada2791
editor: Move code actions menu closer to the indicator when it is deployed via click (#11214)
713c314
Clean up doc comments on `LanguageModelTool` trait (#11217)
Click to expand commit body
This PR cleans up the doc comments on the `LanguageModelTool` trait to
follow Rust documentation conventions.
Release Notes:
- N/A
Marshall Bowers
created
e3de440
assistant2: Restructure tools in preparation for adding more (#11213)
Click to expand commit body
This PR does a slight restructuring of how tools are defined in the
`assistant2` crate to make it more amenable to adding more tools in the
near future.
Release Notes:
- N/A
Marshall Bowers
created
d743c19
Add script to package Linux binary into archive (#11165)
Click to expand commit body
Release Notes:
- N/A
Thorsten Ball
created
73d0600
project: Set completion to undocumented if text empty (#11207)
Click to expand commit body
I think the previous code was missing a `return` in there because it
always overwrote the `completion.documentation` field, even if the
`text.is_empty()` is true.
Release Notes:
- N/A
Thorsten Ball
created
f96cab2
Add avatar support for codeberg in git blame (#10991)
Click to expand commit body
Release Notes:
- Added support for avatars in git blame for repositories hosted on
codeberg
<img width="1144" alt="Screenshot 2024-04-25 at 16 45 22"
src="https://github.com/zed-industries/zed/assets/43210583/d44770d8-44ea-4c6b-a1c0-ac2d1d49408f">
Questions:
- Should we move git stuff like `Commit`, `Author`, etc outside of
hosting-specific files (I don't think so, as other hostings can have
different stuff)
- Should we also add support for self hosted forgejo instances or should
it be a different PR?
Stanislav Alekseev
created
8152e06
Allow triggering preview and stable simultaneously (#11201)
Click to expand commit body
Release Notes:
- N/A
Conrad Irwin
created
62c12cd
Reduce frequency of workspace save (#11183)
bc73626
support vim replace command with range (#10709)
Click to expand commit body
Release Notes:
- Added support for line ranges in vim replace commands #9428
- not supporting anything other than bare line numbers right now
- ~need to figure out how to show range in question in search bar~
@ConradIrwin implemented showing a highlight of the selected range for a
short direction instead
- ~tests lol~
Release Notes:
- Added diagnostics for main-thread hangs on macOS. These are only
enabled if you've opted into diagnostics.
---------
Co-authored-by: Mikayla <mikayla@zed.dev>
Conrad Irwin
and
Mikayla
created
04cd8dd
assistant2: Add the ability to collapse chat messages (#11194)
Click to expand commit body
This PR adds the ability to collapse/uncollapse chat messages.
I think the spacing might be a little off with the collapsed
calculations, so we'll need to look into that.
https://github.com/zed-industries/zed/assets/1486634/4009c831-b44e-4b30-85ed-0266cb5b8a26
Release Notes:
- N/A
Marshall Bowers
created
ce643e6
Add Gentoo support to Linux dependency script (#11141)
Click to expand commit body
This PR adds dependencies for Gentoo Linux.
Release Notes:
- N/A
Fixes wrong cursor icons and sizes on KDE 6 (and possibly other
compositors)
Gnome still doesn't support this protocol, so to fix cursor settings
there we'll need to read `gsettings`.
Before:

After:

Release Notes:
- N/A
apricotbucket28
created
089ea78
assistant2: Use `ChatMessage` component to render chat messages (#11193)
Click to expand commit body
This PR updates the new assistant panel to use the `ChatMessage`
component to render its chat messages.
This also lays the foundation for collapsing the messages, though that
has yet to be wired up.
Adapted from the work on the `assistant-chat-ui` branch.
Release Notes:
- N/A
Marshall Bowers
created
ae65034
assistant2: Add headers to chat messages (#11191)
Click to expand commit body
This PR adds headers to the chat messages in the new assistant panel.
Adapted from the work on the `assistant-chat-ui` branch.
Release Notes:
- N/A
Marshall Bowers
created
1c09b69
Pin message composer to the bottom of the new assistant panel (#11186)
This PR restores the `Global` trait's status as a marker trait.
This was the original intent from #7095, when it was added, that had
been lost in #9777.
The purpose of the `Global` trait is to statically convey what types can
and can't be accessed as `Global` state, as well as provide a way of
restricting access to said globals.
For example, in the case of the `ThemeRegistry` we have a private
`GlobalThemeRegistry` that is marked as `Global`:
https://github.com/zed-industries/zed/blob/91b3c24ed35d58438ae33970f07d1ff01d3acfc7/crates/theme/src/registry.rs#L25-L34
We're then able to permit reading the `ThemeRegistry` from the
`GlobalThemeRegistry` via a custom getter, while still restricting which
callers are able to mutate the global:
https://github.com/zed-industries/zed/blob/91b3c24ed35d58438ae33970f07d1ff01d3acfc7/crates/theme/src/registry.rs#L46-L61
Release Notes:
- N/A