ba9c592
Fix emojis when rendering with the system ui font (#10491)
Click to expand commit body
Release Notes: - N/A
Conrad Irwin created
ba9c592
Fix emojis when rendering with the system ui font (#10491)
Release Notes: - N/A
Conrad Irwin created
ad8dd17
lua: Fix extension version (#10490)
This PR fixes the Lua extension version to be v0.0.1 instead of v0.1.0 for the initial release. Release Notes: - N/A
Marshall Bowers created
cb6d063
Windows: Fix crash when trying to copy nothing to clipboard (#10405)
Release Notes: - N/A
usr created
065f15e
Use buffer font when rendering editor breadcrumbs and diagnostics (#10488)
Before: <img width="592" alt="Screenshot 2024-04-12 at 12 00 00 PM" src="https://github.com/zed-industries/zed/assets/2280405/3251743e-4f2c-4ca3-9bc5-88f37660f7b9"> After: <img width="673" alt="Screenshot 2024-04-12 at 12 11 37 PM" src="https://github.com/zed-industries/zed/assets/2280405/6a8ac597-261a-45d9-bf2a-a673b6f26b0e"> Release Notes: - N/A
Mikayla Maki created
1045581
windows: Update `WindowsDisplay::frequency()` (#10476)
A subsequent update introduced the `HMONITOR` value to the `WindowsDisplay` struct, eliminating the need for polling to retrieve this value. Release Notes: - N/A
张小白 created
4e6f24a
Only emit resize event when size changed (#10419)
Currently, terminal will emit resize event every seconds, even if the size not changed. this PR fixed only emit resize event when size is changed. Release Notes: - N/A
CharlesChen0823 created
f3a78f6
Extract Vue extension (#10486)
This PR extracts Vue support into an extension and removes the built-in C# support from Zed. Release Notes: - Removed built-in support for Vue, in favor of making it available as an extension. The Vue extension will be suggested for download when you open a `.vue` file. --------- Co-authored-by: Max <max@zed.dev>
Marshall Bowers and Max created
8bca9ce
Fix Auto folded dirs performance issues (#8556)
Fixed auto folded dirs which caused significant performance issues #8476 (#7674) Moved from iterating over snapshot entries to use `child_entries` function from `worktree.rs` by making it public @maxbrunsfeld Release Notes: - Fixed a bug where project panel settings changes would not be applied immediately. - Added a `project_panel.auto_fold_dirs` setting which collapses the nesting in the project panel when there is a chain of folders containing a single folder. <img width="288" alt="Screenshot 2024-04-12 at 11 10 58 AM" src="https://github.com/zed-industries/zed/assets/2280405/efd61e75-026c-464d-ba4d-90db5f68bad3"> --------- Co-authored-by: Mikayla <mikayla@zed.dev>
Yury Abykhodau and Mikayla created
2858606
Display more specific tasks above in the modal (#10485)
Kirill Bulatov created
49371b4
Semantic Index (#10329)
This introduces semantic indexing in Zed based on chunking text from files in the developer's workspace and creating vector embeddings using an embedding model. As part of this, we've created an embeddings provider trait that allows us to work with OpenAI, a local Ollama model, or a Zed hosted embedding. The semantic index is built by breaking down text for known (programming) languages into manageable chunks that are smaller than the max token size. Each chunk is then fed to a language model to create a high dimensional vector which is then normalized to a unit vector to allow fast comparison with other vectors with a simple dot product. Alongside the vector, we store the path of the file and the range within the document where the vector was sourced from. Zed will soon grok contextual similarity across different text snippets, allowing for natural language search beyond keyword matching. This is being put together both for human-based search as well as providing results to Large Language Models to allow them to refine how they help developers. Remaining todo: * [x] Change `provider` to `model` within the zed hosted embeddings database (as its currently a combo of the provider and the model in one name) Release Notes: - N/A --------- Co-authored-by: Nathan Sobo <nathan@zed.dev> Co-authored-by: Antonio Scandurra <me@as-cii.com> Co-authored-by: Conrad Irwin <conrad@zed.dev> Co-authored-by: Marshall Bowers <elliott.codes@gmail.com> Co-authored-by: Antonio <antonio@zed.dev>
Kyle Kelley , Nathan Sobo , Antonio Scandurra , Conrad Irwin , Marshall Bowers , and Antonio created
4b40e83
gpui: Fix window title special characters display on X11 (#9994)
Before:  After:  Release Notes: - Fixed window title special characters display on X11. --------- Co-authored-by: Mikayla Maki <mikayla@zed.dev>
Maxime Forveille and Mikayla Maki created
dffddae
Revert "Revert "language: Remove buffer fingerprinting (#9007)"" (#9671)
This reverts commit caed275fbf58af9c3ac89ef11229d0a6bd13016f. NOTE: this should not be merged until #9668 is on stable and the `ZedVersion#can_collaborate` is updated to exclude all clients without that change. Release Notes: - N/A --------- Co-authored-by: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com>
Conrad Irwin and Piotr Osiewicz created
a4d6c5d
toml: Bump to v0.1.0 (#10482)
This PR bumps the TOML extension to v0.1.0. This version of the extension has been updated to use v0.0.6 of the `zed_extension_api`. Release Notes: - N/A
Marshall Bowers created
3ea1724
Adjust left movement when soft_wrap mode is used (#10464)
Release Notes: - Added/Fixed #10350
Hans created
e0e1103
zig: Bump to v0.1.0 (#10481)
This PR bumps the Zig extension to v0.1.0. This version of the extension has been updated to use v0.0.6 of the `zed_extension_api`. It also adds support for treating `.zig.zon` files as Zig files (#10012). Release Notes: - N/A
Marshall Bowers created
65c9e7d
php: Bump to v0.0.2 (#10480)
This PR bumps the PHP extension to v0.0.2. This version of the PHP extension adds the `language_ids` mappings from #10053. Release Notes: - N/A
Marshall Bowers created
b5b8726
Extract Terraform extension (#10479)
This PR extracts Terraform support into an extension and removes the built-in Terraform support from Zed. Release Notes: - Removed built-in support for Terraform, in favor of making it available as an extension. The Terraform extension will be suggested for download when you open a `.tf`, `.tfvars`, or `.hcl` file.
Marshall Bowers created
f4d9a97
preview tabs: Support find all references (#10470)
`FindAllReferences` will now open a preview tab, jumping to a definition will also open a preview tab. https://github.com/zed-industries/zed/assets/53836821/fa3db1fd-ccb3-4559-b3d2-b1fe57f86481 Note: One thing I would like to improve here is also adding support for reopening `FindAllReferences` using the navigation history. As of now the navigation history is lacking support for reopening items other then project files, which needs to be implemented first. Release Notes: - N/A
Bennet Bo Fenner created
7b01a29
preview tabs: Fix tab selection getting out of sync (#10478)
There was an edge case where the project panel selection would not be updated when opening a lot of tabs quickly using the preview tab feature. I spent way too long debugging this, thankfully @ConradIrwin spotted it in like 5 minutes 🎉 Release Notes: - N/A
Bennet Bo Fenner created
04e89c4
Use workspace `uuid` (#10475)
Release Notes: - N/A
张小白 created
0ab5a52
Fix overlap (#10474)
Although I liked the symmetry of the count in the middle of the arrows, it's tricky to make the buttons not occlude the count on hover, so go back to this arrangement. Release Notes: - N/A
Conrad Irwin created
cd5ddfe
chat panel: Add timestamp in tooltip to edited message (#10444)
Hovering over the `(edited)` text inside a message displays a tooltip with the timestamp of when the message was last edited:  --- Also removed the `fade_out` style for the `(edited)` text, as this was causing tooltips to fade out as well:  Instead it uses `theme().text_muted` now. Release Notes: - Hovering over an edited message now displays a tooltip revealing the timestamp of the last edit.
Bennet Bo Fenner created
0a4c348
Fix typo in README (#10471)
Fixes a typo in the README which I believe was accidentally committed yesterday in #10459 Release Notes: - N/A
Bennet Bo Fenner created
a1cbc23
task: use full task label to distinguish a terminal (#10469)
Spotted by @SomeoneToIgnore, in #10468 I've used a shortened task label, which might lead to collisions. Release Notes: - N/A
Piotr Osiewicz created
298e9c9
task: Allow Rerun action to override properties of task being reran (#10468)
For example:
```
"alt-t": [
"task::Rerun",
{ "reevaluate_context": true, "allow_concurrent_runs": true }
],
```
Overriding `allow_concurrent_runs` to `true` by itself should terminate
current instance of the task, if there's any.
This PR also fixes task deduplication in terminal panel to use expanded
label and not the id, which depends on task context. It kinda aligns
with how task rerun worked prior to #10341 . That's omitted in the
release notes though, as it's not in Preview yet.
Release Notes:
- `Task::Rerun` action can now override `allow_concurrent_runs` and
`use_new_terminal` properties of the task that is being reran.
Piotr Osiewicz created
6e1ba7e
Allow hovering over tooltips in `git blame` sidebar (#10466)
This introduces a new API on `StatefulInteractiveElement` to create a tooltip that can be hovered, scrolled inside, and clicked: `.hoverable_tooltip`. Right now we only use it in the `git blame` gutter, but the plan is to use the new hover/click/scroll behavior in #10398 to introduce new git-blame-tooltips. Release Notes: - N/A --------- Co-authored-by: Antonio <antonio@zed.dev>
Thorsten Ball and Antonio created
bc0c2e0
Extend Vim default keybindings (#10461)
This implements some of #10457. Release notes: - Added `g c c` and `g c` to Vim keybindings to toggle comments in normal and visual mode respectively. - Added `g ]` and `g [` to Vim keybindings to go to next and previous diagnostic error. - Changed `[ x` and `] x` (which select larger/smaller syntax node) in Vim mode to also work in visual mode.
Thorsten Ball created
29a5057
Add git blame error reporting with notification (#10408)
<img width="1035" alt="Screenshot 2024-04-11 at 13 13 44" src="https://github.com/zed-industries/zed/assets/13402668/cd0e96a0-41c6-4757-8840-97d15a75c511"> Release Notes: - Added a notification to show possible `git blame` errors if it fails to run. Caveats: - ~git blame now executes in foreground executor (required since the Fut is !Send)~ TODOs: - After a failed toggle, the app thinks the blame is shown. This means toggling again will do nothing instead of retrying. (Caused by editor.show_git_blame being set to true before the git blame is generated) - ~(Maybe) Trim error?~ Done --------- Co-authored-by: Thorsten Ball <mrnugget@gmail.com>
Mehmet Efe Akça and Thorsten Ball created
08786fa
Make BufferSearch less wide (#10459)
This also adds some "responsiveness" so that UI elements are hidden before everything has to be occluded Release Notes: - Improved search UI. It now works in narrower panes, and avoids scrolling the editor on open. <img width="899" alt="Screenshot 2024-04-11 at 21 33 17" src="https://github.com/zed-industries/zed/assets/94272/44b95d4f-08d6-4c40-a175-0e594402ca01"> <img width="508" alt="Screenshot 2024-04-11 at 21 33 45" src="https://github.com/zed-industries/zed/assets/94272/baf4638d-427b-43e6-ad67-13d43f0f18a2"> <img width="361" alt="Screenshot 2024-04-11 at 21 34 00" src="https://github.com/zed-industries/zed/assets/94272/ff60b561-2f77-49c0-9df7-e26227fe9225"> <img width="348" alt="Screenshot 2024-04-11 at 21 37 03" src="https://github.com/zed-industries/zed/assets/94272/a2a700a2-ce99-41bd-bf47-9b14d7082b0e">
Conrad Irwin created
f2d61f3
Add feature to display commands for vim mode (#10349)
Release Notes: - Added the current operator stack to the Vim status bar at the bottom of the editor. #4447 This commit introduces a new feature that displays the current partial command in the vim mode, similar to the behavior in Vim plugin. This helps users keep track of the commands they're entering.
Hans created
9853307
Use buffer font for search (#10455)
It's wierd to type code/regex in the UI font Release Notes: - Continue to use buffer font for search
Conrad Irwin created
27ba165
Organize Project Panel context menus (#10456)
This design polish PR brings the project panel context menu into better alignment with other editors, better follows system patterns and identifies focus shifting actions with the `…` indicator (like adding a new folder to a project, which will open a modal window.) ## Before & After: **Root level**  **Folder level**  **File level**  Note: That double divider in the after has been fixed 😅 --- Release Notes: - Improved ordering and organization of context menus in the project panel to bring them closer to those in similar applications.
Nate Butler created
32806b8
vim: Don’t allow edits in the read-only state (#10404)
Fix #8423 Release Notes: - vim: Fixed vim-surround motions editing read-only buffer (preview-only)
Hans created
3ab9700
Windows: Add missing delete key (#10422)
Add miss delete key in windows platform. Release Notes: - N/A
CharlesChen0823 created
9d96ae6
Redo linux state again (#10452)
With the recent Linux rewrite, I attempted to simplify the number of wrapper structs involved in the Linux code, following the macOS code as an example. Unfortunately, I missed a vital component: pointers to the platform state, held by platform data structures. As we hold all of the platform data structures on Linux, this PR reintroduces a wrapper around the internal state of both the platform and the window. This allows us to close and drop windows correctly. This PR also fixes a performance problem introduced by: https://github.com/zed-industries/zed/pull/10343, where each configure request would add a new frame callback quickly saturating the main thread and slowing everything down. Release Notes: - N/A
Mikayla Maki created
8d7f5ea
Extract Ocaml language support into an extension (#10450)
Release Notes: - Extracted Ocaml language support into an extension --------- Co-authored-by: Marshall <marshall@zed.dev>
Max Brunsfeld and Marshall created
f6c85b2
WIP: remoting (#10085)
Release Notes: - Added private alpha support for remote development. Please reach out to hi@zed.dev if you'd like to be part of shaping this feature.
Conrad Irwin created
ea44190
Add preview tabs (#9125)
This PR implements the preview tabs feature from VSCode. More details and thanks for the head start of the implementation here #6782. Here is what I have observed from using the vscode implementation ([x] -> already implemented): - [x] Single click on project file opens tab as preview - [x] Double click on item in project panel opens tab as permanent - [x] Double click on the tab makes it permanent - [x] Navigating away from the tab makes the tab permanent and the new tab is shown as preview (e.g. GoToReference) - [x] Existing preview tab is reused when opening a new tab - [x] Dragging tab to the same/another panel makes the tab permanent - [x] Opening a tab from the file finder makes the tab permanent - [x] Editing a preview tab will make the tab permanent - [x] Using the space key in the project panel opens the tab as preview - [x] Handle navigation history correctly (restore a preview tab as preview as well) - [x] Restore preview tabs after restarting - [x] Support opening files from file finder in preview mode (vscode: "Enable Preview From Quick Open") I need to do some more testing of the vscode implementation, there might be other behaviors/workflows which im not aware of that open an item as preview/make them permanent. Showcase: https://github.com/zed-industries/zed/assets/53836821/9be16515-c740-4905-bea1-88871112ef86 TODOs - [x] Provide `enable_preview_tabs` setting - [x] Write some tests - [x] How should we handle this in collaboration mode (have not tested the behavior so far) - [x] Keyboard driven usage (probably need workspace commands) - [x] Register `TogglePreviewTab` only when setting enabled? - [x] Render preview tabs in tab switcher as italic - [x] Render preview tabs in image viewer as italic - [x] Should this be enabled by default (it is the default behavior in VSCode)? - [x] Docs Future improvements (out of scope for now): - Support preview mode for find all references and possibly other multibuffers (VSCode: "Enable Preview From Code Navigation") Release Notes: - Added preview tabs ([#4922](https://github.com/zed-industries/zed/issues/4922)). --------- Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
Bennet Bo Fenner and Conrad Irwin created
edb1ea2
Do not show image viewer for SVGs (#10435)
Absent some ability to toggle between viewing and editing a file, I think it would be best to get a fix out quick for people to edit SVGs as text files. Release Notes: - Fixed editing of SVG images by disabling it from the image viewer ([#10403](https://github.com/zed-industries/zed/issues/10403)).
Kyle Kelley created
86aa352
Remove leftover commented-out code (#10445)
This PR removes some commented-out code that was left over from #10430. Release Notes: - N/A
Marshall Bowers created
253aa28
Extract Scheme and Racket language support into extensions (#10442)
Release Notes: - Extracted Scheme and Racket language support into extensions. --------- Co-authored-by: Marshall <marshall@zed.dev>
Max Brunsfeld and Marshall created
165d6b9
task: Fix variable substitution for free variables (#10434)
Fixes regression from https://github.com/zed-industries/zed/pull/10341 where it was not possible to use non-zed environmental variables (e.g. $PATH) in task definitions. No release note, as this didn't land on Preview yet. Release Notes: - N/A
Piotr Osiewicz created
0ac3130
Remove built-in Nix support (#10439)
Release Notes: - Removed built-in Nix support, now that there is a Nix extension. Co-authored-by: Marshall <marshall@zed.dev>
Max Brunsfeld and Marshall created
176f440
Extract lua language support into an extension (#10437)
Release Notes: - Extracted lua language support into an extension, and improved Lua highlighting and completion label styling. --------- Co-authored-by: Marshall <marshall@zed.dev>
Max Brunsfeld and Marshall created
c6028f6
Fix Dart syntax highlighting issue (#8347)
Release Notes: * Improved Dart syntax highlighting ([#8151](https://github.com/zed-industries/zed/pull/8347#8151)) Before: <img width="1246" alt="Before" src="https://github.com/zed-industries/zed/assets/25414681/d9143fe8-c474-40bb-afbd-56fef16edab3"> After: <img width="1249" alt="After" src="https://github.com/zed-industries/zed/assets/25414681/4b103c35-fb24-4693-8b9e-3dd494036c9f"> (Shameless plug, since I build the theme) Theme: The Dark Side
Sai Gokula Krishnan created
c38f72d
Extract GLSL language support into an extension (#10433)
Release Notes: - Extracted GLSL language support into an extension. --------- Co-authored-by: Marshall <marshall@zed.dev> Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
Max Brunsfeld , Marshall , and Marshall Bowers created
47f698d
Validate content-length of downloaded extension tar gz files (#10430)
Release Notes: - Fixed a bug where extension installation would appear to succeed even if the download did not complete due to network interruptions ([#10330](https://github.com/zed-industries/zed/issues/10330)). Co-authored-by: Marshall <marshall@zed.dev>
Max Brunsfeld and Marshall created
bcd2ca6
Extract Elm language into an extension (#10432)
Release Notes: - Extracted Elm language support into an extension Co-authored-by: Marshall <marshall@zed.dev>
Max Brunsfeld and Marshall created
78d6bee
Fix invisible chat icons (#10406)
As of #10393 some icons in the chat were invisible, looking at the icons I noticed that the viewport was actually 800x800, I scaled that down to 16x16 and now they work fine again. Also remove the `reply_arrow_left` icon because it is not used at all. Thanks to @RemcoSmitsDev for noticing. I don't have any expertise in svg's, so if something is off about the svg markup reach out to me. Release Notes: - N/A
Bennet Bo Fenner created
2d21f6d
emmet: Bump to v0.0.2 (#10426)
This PR bumps the Emmet extension to v0.0.2. This version of the Emmet extension adds Emmet support for PHP and ERB files. Release Notes: - N/A
Marshall Bowers created