e257f7d
Ignore tests for now
Kirill Bulatov created
e257f7d
Ignore tests for now
Kirill Bulatov created
c3461d2
chore: Bump cc to 1.0.84 (#3304)
This resolves a minor issue where build scripts could've acquired more job server tokens from Cargo than allowed by `-j` parameter. I've filled a PR at https://github.com/rust-lang/cc-rs/pull/878 and we've iterated on the design over there since. TL;DR: some build scripts may complete a tad bit quicker, potentially shaving off a few seconds off of debug/release builds. Full description of the issue is available in https://github.com/rust-lang/cc-rs/issues/858 Release Notes: - N/A
Piotr Osiewicz created
a9c17e7
Uncomment all inlay hint cache code and tests
Kirill Bulatov created
81cc6e8
pane: When opening a buffer, actually scroll to the selected tab. (#3306)
Previously it might've reused a shared state. Deals with https://github.com/zed-industries/community/issues/2262 also fixes influencer's feedback. No gpui2 port, due to 0 scrollable functionality in it yet. Release Notes: - Fixed tabs not being scrolled to on buffer (re)open (https://github.com/zed-industries/community/issues/2262)
Kirill Bulatov created
f0f0b47
pane: When opening a buffer, actually scroll to the selected tab. Previously it might've reused a shared state.
Deals with https://github.com/zed-industries/community/issues/2262 also fixes influencer's feedback. Co-Authored-By: Piotr <piotr@zed.dev>
Kirill Bulatov and Piotr created
9c18253
Register key and action listeners using `Interactive::initialize`
Co-Authored-By: Thorsten <mrnugget@gmail.com>
Antonio Scandurra and Thorsten created
318cb78
Fix panic when calling `with_key_dispatch` recursively
Co-Authored-By: Thorsten <mrnugget@gmail.com>
Antonio Scandurra and Thorsten created
13255ef
Poke at getting the project panel showing up
Mikayla created
6c6fb99
Theme elevation + Palette Style (#3305)
[[PR Description]] Release Notes: - N/A
Nate Butler created
800ad1d
Update command palette style
Nate Butler created
cdd347c
chore: Bump cc to 1.0.84
This resolves a minor issue where build scripts could've acquired more job server tokens from Cargo than allowed by `-j` parameter. I've filled a PR at https://github.com/rust-lang/cc-rs/pull/878 and we've iterated on the design over there since. TL;DR: some build scripts may complete a tad bit quicker, potentially shaving off a few seconds off of debug/release builds.
Piotr Osiewicz created
7eaba8f
WIP
Nathan Sobo created
6bdb6e4
Refactor command palette, picker and code action styles.
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
Nate Butler and Marshall Bowers created
3d66ba3
Add ui::Divider component
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
Nate Butler and Marshall Bowers created
5dca5ca
Add elevation to StyledExt
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
Nate Butler and Marshall Bowers created
74a0d93
Add a DispatchTree which will replace the existing key dispatch strategy
Instead of freezing a stack, we will record the entire dispatch tree so we can change focus. Co-Authored-By: Antonio Scandurra <me@as-cii.com>
Nathan Sobo and Antonio Scandurra created
1c02690
Wire up code actions in `editor2` (#3302)
Release Notes: - N/A
Antonio Scandurra created
c2c6921
:fire:
Antonio Scandurra created
198a854
Fix bad import
Antonio Scandurra created
468a014
Allow measuring arbitrary items in UniformList
Antonio Scandurra created
c44db3b
Confirm code action on mouse down
Antonio Scandurra created
fb450e3
Wire up keyboard interaction in code actions menu
Antonio Scandurra created
bf576d4
Make code actions menu prettier
Antonio Scandurra created
c76fd93
Use padded bounds to draw uniform list items
Antonio Scandurra created
1d37191
Ensure UniformList style is painted beneath its items
Antonio Scandurra created
6929a71
Ceil measured width for Text element
Antonio Scandurra created
3cd4eef
Do not add diagnostics for any selection in the diagnostics panel (#3300)
Make the panel less jumpy by deferring diagnostics updates until cmd-s is pressed, if any caret is placed inside the diagnostics panel. Release Notes: - N/A
Kirill Bulatov created
d38a2b7
Do not add diagnostics for any selection in the diagnostics panel
Kirill Bulatov created
a30b47a
Show a very basic code actions menu
Antonio Scandurra created
23fd1e1
Ignore element offset when manually drawing `AnyElement`
Antonio Scandurra created
a0987f1
Merge remote-tracking branch 'origin/main' into code-actions-2
Antonio Scandurra created
2f3044a
command palette2 (#3296)
Still to do: - [ ] Figure out why `ctrl-g` `ctrl-g` doesn't dismiss GoToLine (but `cmd-shift-p` `cmd-shift-p` does dismiss Command). Likely to do with the "Editor" context in the keymap, but this did used to work in gpui1. - [ ] Fix first render with incorrect matches immediately flashes. - [ ] Show keybindings - [x] Figure out why `cmd-shift-p "go to line" enter` panics - [ ] Fix the selected visuals - [ ] Party hard - [ ] Uncomment the tests
Conrad Irwin created
cc9fb9d
Fix panic caused by focusing the same thing twice
Conrad Irwin created
5a71188
Refactor to make ModalLayer a View
Conrad Irwin created
d4b1d1b
Move from register_modals to register_workspace_action
Conrad Irwin created
e6d6806
Tidy up some more modal behaviour
Conrad Irwin created
a73265a
Merge branch 'main' into command_palette2
Conrad Irwin created
77d92ff
Tidy up
Conrad Irwin created
b9e098e
Start work on creating gpui2 version of project panel
Max Brunsfeld created
cb8c534
theme_importer: Support importing themes containing comments (#3298)
This PR updates the `theme_importer` with support for parsing theme files containing comments. Up until now we've been manually removing comments from the VS Code theme files. Release Notes: - N/A
Marshall Bowers created
6bc1cf0
Re-import the Synthwave 84 theme (#3297)
This PR re-imports the Synthwave 84 theme now that we support 3-value hex colors. Release Notes: - N/A
Marshall Bowers created
6f23894
Fix editor settings deserialization in editor2
Max Brunsfeld created
ff15ddf
Render more than one item
Conrad Irwin created
8bd02fd
Extend RGBA hex color parsing to support 3-value and 4-value variants (#3295)
This PR extends our support for parsing hex color codes to `Rgba` to additionally support 3-value (`#rgb`) and 4-value (`#rgba`) formats. See [here](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color) for more details on these hex color variants. Release Notes: - N/A
Marshall Bowers created
82861e3
Improve digit duplication
Marshall Bowers created
8f5adeb
Improve error conditions when parsing hex colors
Marshall Bowers created
417279e
Add support for parsing 3-value and 4-value hex codes
Marshall Bowers created
2347576
Extend theme converter to allow multimatching against vscode colors (#3294)
[[PR Description]]
Adds the ability to specify a vec of VScode syntax scopes to match
against for a given syntax style.
Example:
```rust
pub fn to_vscode(&self) -> Vec<&'static str> {
use ZedSyntaxToken::*;
match self {
SyntaxAttribute => vec!["entity.other.attribute-name"],
SyntaxBoolean => vec!["constant.language"],
SyntaxComment => vec!["comment"],
SyntaxCommentDoc => vec!["comment.block.documentation"],
SyntaxConstant => vec!["constant.character"],
SyntaxConstructor => vec!["entity.name.function.definition.special.constructor"],
SyntaxEmbedded => vec!["meta.embedded"],
SyntaxEmphasis => vec!["markup.italic"],
SyntaxEmphasisStrong => vec![
"markup.bold",
"markup.italic markup.bold",
"markup.bold markup.italic",
],
SyntaxEnum => vec!["support.type.enum"],
SyntaxFunction => vec![
"entity.name.function",
"variable.function",
"support.function",
],
SyntaxKeyword => vec!["keyword"],
SyntaxLabel => vec![
"label",
"entity.name",
"entity.name.import",
"entity.name.package",
],
// .. more styles
}}
```
Useful `settings.json` for testing themes:
```json5
{
// --- Dark Themes ---
"theme": "Ayu Dark"
// "theme": "Ayu Mirage"
// "theme": "Dracula"
// "theme": "Gruvbox Dark Hard"
// "theme": "Gruvbox Dark Medium"
// "theme": "Gruvbox Dark Soft"
// "theme": "Night Owl"
// "theme": "Noctis Obscuro"
// "theme": "Noctis"
// "theme": "Nord"
// "theme": "Palenight (Mild Contrast)"
// "theme": "Palenight Operator"
// "theme": "Palenight"
// "theme": "Rose Pine Moon"
// "theme": "Rose Pine"
// "theme": "Solarized Dark"
// "theme": "Synthwave 84"
// --- Light Themes ---
// "theme": "Ayu Light"
// "theme": "Gruvbox Light Hard"
// "theme": "Gruvbox Light Medium"
// "theme": "Gruvbox Light Soft"
// "theme": "Noctis Lux"
// "theme": "Rose Pine Dawn"
// "theme": "Solarized Light"
}
```
Release Notes:
- N/A
Nate Butler created
7586ef1
Refine search query suggestions (#3293)
This PR fixes some issues in response to feedback from Dan Abramov and
Jose Valim.
To do:
* [x] fix non-word search suggestions
* [x] add setting for disabling search suggestions
Release Notes:
- Fixed an issue where opening a search without text selected would
populate the search query with non-word characters adjacent to the
cursor.
- Added a setting, `seed_search_query_from_cursor`, which controls
whether the search query is automatically populated from the buffer when
starting a new buffer search or project search.
By default, the search query will always be set to the word under the
cursor. If you want to only populate the search query when text is
selected, you can add the following to your `~/.zed/settings.json`:
```json
{
"seed_search_query_from_cursor": "selection"
}
```
If you don't want the search query to be automatically populated, even
when there is text selected, add the following:
```json
{
"seed_search_query_from_cursor": "never"
}
```
Max Brunsfeld created
b6eef26
Merge branch 'main' into search-query-suggestion-fixes
Max Brunsfeld created