ee1a9d8
zed 0.104.2
Antonio Scandurra created
ee1a9d8
zed 0.104.2
Antonio Scandurra created
fad708a
Rework inlay hover model (#2969)
Fixes ``` thread 'main' panicked at 'byte index 2 is not a char boundary; it is inside '…' (bytes 0..3) of `…)`' ``` panics like https://zed-industries.slack.com/archives/C04S6T1T7TQ/p1694535396473329 by reworking the inlay hover model: * avoid storing "hardcoded" coordinates of hovered inlay labels (such as `InlayOffset`), instead, remember `inlay_id` and apply required highlights there when hint with the same id is handled * add randomized tests on inlay highlights * sped up inlay hint cache lookup by inlay_id As a downside, background highlights are no long appearing on inlay hints, but Zed does not receive any tooltips for inlays anyway (r-a does not send them for some reason, other LSP seem to have no such feature?), so it does not matter now. Nontheless, if the logic for displaying hint pop-ups is present and works for harcoded tooltips in r-a, only background highlight is missing now. Release Notes: - Fixed inlay hint highlights causing panic for certain cases with "large" characters
Kirill Bulatov created
950183b
Don't dismiss inline assistant when an error occurs (#2971)
Release Notes: - Fixed a bug that was preventing errors from being shown in the inline assistant when it was still deployed. (preview-only)
Antonio Scandurra created
d6453ec
zed 0.104.1
Joseph T. Lyons created
b88adde
small fix to rate status update (#2967)
Small fix to update code for rate limiting status. Release Notes (Preview only) - Fixed update to only stop updating status, when the rate limit is reset to None
Kyle Caverly created
1e4878e
search_bar: Add toggle_replace_on_a_pane. (#2966)
This allows users to add a keybind to ToggleReplace from Editor/Pane contexts. Release Notes: - Fixed replace in buffer not reacting to keyboard shortcuts outside of search bar<preview-only>.
Piotr Osiewicz created
522937b
Fix toggle replace tooltip (#2964)
Release Notes: - N/A
Joseph T. Lyons created
7873366
v0.104.x preview
Joseph T. Lyons created
5697a87
Fix indentation issues when generating or transforming code with inline assistant (#2961)
This pull request extracts a separate `Codegen` struct that models the interaction with OpenAI and takes care of diffing, auto-indenting and reporting regions to highlight. As part of this refactoring, we're now relying less on the AI model to indent code. The new logic lets tree-sitter decide how the first line should be indented. Then, for every subsequent line reported by ChatGPT, it calculates an indent delta relative to the first reported line and applies it to the indent level chosen by tree-sitter. Release Notes: - Improved auto-indentation when using the inline assistant.
Antonio Scandurra created
127d035
Diff lines one chunk at a time after discovering indentation
Antonio Scandurra created
70c9b8f
Merge remote-tracking branch 'origin/main' into polish-codegen
Antonio Scandurra created
b8c4375
Never use the indentation that comes from OpenAI
Antonio Scandurra created
329a072
vim counts (#2958)
Release Notes: - vim: Fix counts with operators (`2yy`, `d3d`, etc.) ([#1496](https://github.com/zed-industries/community/issues/1496)) ([#970](https://github.com/zed-industries/community/issues/970)). - vim: Add support for counts with insert actions (`2i`, `2o`, `2a`, etc.) - vim: add `_` and `g_`
Conrad Irwin created
a63b78d
Replace in buffer adjustments (#2960)
This PR addresses feedback from @maxbrunsfeld on new replace in buffer. It fixes: - missing padding surrounding replace input. - missing padding around replace buttons. - missing `.notify` call which made the replace fields not show up immediately sometimes. Release Notes: - N/A --------- Co-authored-by: Max <max@zed.dev>
Piotr Osiewicz and Max created
65e0a67
Lsp status bugfix (#2959)
Release Notes: - Fixed a case where language server download statuses could be skipped. - Fixed a case where language server diagnostic progress could get stuck when restarting a language server.
Julia created
c6f2930
Avoid keeping stale LSP progress indicator state when server is removed
Julia created
0958def
Remove another supported exemption
Conrad Irwin created
b0facf8
Use unbounded channel(s) for LSP binary status messaging
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
Julia and Antonio Scandurra created
4cb8647
Z 1200/replace in buffer (#2922)
This is still WIP, mostly pending styling. I added a pretty rudimentary text field and no buttons whatsoever other than that. I am targeting a Preview of 09.13, as I am gonna be on PTO for the next week. I dislike the current implementation slightly because of `regex`'s crate syntax and lack of support of backreferences. What strikes me as odd wrt to syntax is that it will just replace a capture name with empty string if that capture is missing from the regex. While this is perfectly fine behaviour for conditionally-matched capture groups (e.g. `(foo)?`), I think it should still error out if there's no group with a given name (conditional or not). Release Notes: - Added "Replace" functionality to buffer search.
Piotr Osiewicz created
dcaba9d
Remove supported exception
(and refactor tests to be more linear)
Conrad Irwin created
7daed1b
Fix 0 used in a count
Conrad Irwin created
c2c5210
Fix bug where cursors became invisible if replaying was interrupted
Conrad Irwin created
76d5524
Clear counts when switching modes
Conrad Irwin created
d868d00
vim: ALlow counts on insert actions
This re-uses the existing repeat infrastructure.
Conrad Irwin created
cee549e
vim: Fix count handling to allow pre/post counts
Fixes 2yy, d3d, etc. For zed-industries/community#970 For zed-industries/community#1496
Conrad Irwin created
e8a6ecd
Allow a count with CurrentLine
Add _ and g_ too while we're here.
Conrad Irwin created
c545788
Add Storybook Components (#2956)
[[PR Description]] Started building out some early components in the storybook using a modified version of the classic Atomic Design model @mikayla-maki and I are exploring. <img width="1134" alt="atomic_design" src="https://github.com/zed-industries/zed/assets/1714999/9093a8b5-a71d-41d4-bae2-f7562494c5f3"> This PR adds a few things: - `tab`, `tab_bar` and `icon_button` components - Dynamic documentation for the proc macro generated methods like `w_8`, `px_2`, etc. - Continues to build out the Zed workspace demo Release Notes: - N/A
Nate Butler created
017aa1f
Allow installing rustup via homebrew
Kirill Bulatov created
0c2bc6e
Fix some international keybindings (#2957)
This adds primitive interaction with the IME system for keyboard shortcuts in zed. - Consult the IME functionality when handling keyboard shortcuts. This allows you to bind to characters (like " on a Brazillian keybaord, or $ on a Czech keyboard) that aren't typed with an unmodified key. ([#1981](https://github.com/zed-industries/community/issues/1981)) ([#1913](https://github.com/zed-industries/community/issues/1913)) Co-authored-with: Antonio Scandurra <me@as-cii.com>
Conrad Irwin created
e017dc6
Fix ctrl-` on Brazillian too
Conrad Irwin created
0a6e577
Fix some international keybindings
This adds primitive interaction with the IME system for keyboard shortcuts in zed. For zed-industries/community#1981 For zed-industroes/community#1913
Conrad Irwin created
b922d0f
Use rustup (not brew) for rust
Conrad Irwin created
f66dd43
Z 2620 - Sort command palette's entries by name and use count (#2954)
Release Notes: - Improved command palette's command ordering; commands are sorted lexicographically and by command's use count in the current session.
Piotr Osiewicz created
c7ad89d
Merge branch 'main' into nate/storybook-components
Nate Butler created
04fc9d2
Fix incorrect workspace order
Nate Butler created
1376115
Use `enabled` for active tabs
Nate Butler created
c3a3543
Introduce gpui2 and storybook crates (#2919)
This PR splits `crates/gpui/playground` with two new crates: `gpui2` and `storybook`. GPUI 2 re-exports most of `gpui`, but makes some adjustments. I want to keep the scope focused. This isn't literally version 2.0 of GPUI or anything. It's just a convenient way to make a create with fewer dependencies where we can iterate quickly on aspects of GPUI's design. Most of the focus is on improving our approach to element layout and styling. The `storybook` crate is pretty empty for now, but it's where I intend to start rebuilding interfaces. I welcome anyone else to join me in this, though until I get one interface fully built, buyer beware. You may need to pair on it with me.
Nathan Sobo created
15ea4af
Merge branch 'main' into storybook
Nathan Sobo created
917884f
Restructure storybook modules and components
Co-Authored-By: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com>
Nate Butler and Piotr Osiewicz created
e0fdc7d
Eliminate PaintContext
Nathan Sobo created
a24d94c
Eliminate LayoutContext
Nathan Sobo created
d4da554
Rate limiting status (#2955)
Add a rate limit remaining status to Project Search Semantic Search minor text Release Notes (Preview-Only): - Added tracking functionality within EmbeddingProvider, to track rate limit expiry - Update minor text within Project Search to show countdown remaining before rate limit expiry
Kyle Caverly created
2774eae
Checkpoint
Nate Butler created
74ab410
Merge branch 'main' of github.com:zed-industries/zed into rate_limiting_status
KCaverly created
e678c7d
swap
SystemTime for Instant throughout rate_limit_expiry tracking
KCaverly created
7df21f8
move cx notify observe for rate_limit_expiry into ProjectState in the semantic index
Co-authored-by: Antonio <antonio@zed.dev>
KCaverly and Antonio created
6d9333d
Add a failing test for codegen autoindent
Antonio Scandurra created
0207814
Extract code generation logic into its own module
Antonio Scandurra created
49c8020
Add syntax highlighting for nu (#2952)
Unfortunately, their language server implementation uses [VSCode directly](https://github.com/neovim/nvim-lspconfig/issues/2592), so I don't think we can bundle it in yet. For reference, I also started prepping a [Zed repository](https://github.com/zed-industries/nushell-lsp) for serving the nu language server but have archived it since discovering the issue. Release Notes: - Added syntax highlighting for Nushell script files
Mikayla Maki created
2be34ef
Add syntax highlighting for nu scripts
Mikayla created