mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-24 02:46:43 +00:00
Fix compile errors
This commit is contained in:
parent
20e65a533c
commit
cf934ab696
3 changed files with 7 additions and 7 deletions
|
@ -185,7 +185,8 @@
|
||||||
],
|
],
|
||||||
"alt-\\": "copilot::Suggest",
|
"alt-\\": "copilot::Suggest",
|
||||||
"alt-]": "copilot::NextSuggestion",
|
"alt-]": "copilot::NextSuggestion",
|
||||||
"alt-[": "copilot::PreviousSuggestion"
|
"alt-[": "copilot::PreviousSuggestion",
|
||||||
|
"cmd->": "assistant::QuoteSelection"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -199,8 +200,7 @@
|
||||||
"context": "ContextEditor > Editor",
|
"context": "ContextEditor > Editor",
|
||||||
"bindings": {
|
"bindings": {
|
||||||
"cmd-enter": "assistant::Assist",
|
"cmd-enter": "assistant::Assist",
|
||||||
"escape": "assistant::CancelLastAssist",
|
"cmd->": "assistant::QuoteSelection"
|
||||||
"cmd-?": "assistant::QuoteSelection"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -19,10 +19,7 @@ use workspace::{
|
||||||
pane, Pane, Workspace,
|
pane, Pane, Workspace,
|
||||||
};
|
};
|
||||||
|
|
||||||
actions!(
|
actions!(assistant, [NewContext, Assist, QuoteSelection]);
|
||||||
assistant,
|
|
||||||
[NewContext, Assist, CancelLastAssist, QuoteSelection]
|
|
||||||
);
|
|
||||||
|
|
||||||
pub fn init(cx: &mut AppContext) {
|
pub fn init(cx: &mut AppContext) {
|
||||||
cx.add_action(AssistantEditor::assist);
|
cx.add_action(AssistantEditor::assist);
|
||||||
|
@ -69,6 +66,7 @@ impl AssistantPanel {
|
||||||
.with_child(Pane::render_tab_bar_button(
|
.with_child(Pane::render_tab_bar_button(
|
||||||
0,
|
0,
|
||||||
"icons/plus_12.svg",
|
"icons/plus_12.svg",
|
||||||
|
false,
|
||||||
Some(("New Context".into(), Some(Box::new(NewContext)))),
|
Some(("New Context".into(), Some(Box::new(NewContext)))),
|
||||||
cx,
|
cx,
|
||||||
move |_, _| todo!(),
|
move |_, _| todo!(),
|
||||||
|
@ -81,6 +79,7 @@ impl AssistantPanel {
|
||||||
} else {
|
} else {
|
||||||
"icons/maximize_8.svg"
|
"icons/maximize_8.svg"
|
||||||
},
|
},
|
||||||
|
pane.is_zoomed(),
|
||||||
Some((
|
Some((
|
||||||
"Toggle Zoom".into(),
|
"Toggle Zoom".into(),
|
||||||
Some(Box::new(workspace::ToggleZoom)),
|
Some(Box::new(workspace::ToggleZoom)),
|
||||||
|
|
|
@ -31,6 +31,7 @@ use copilot::Copilot;
|
||||||
pub use display_map::DisplayPoint;
|
pub use display_map::DisplayPoint;
|
||||||
use display_map::*;
|
use display_map::*;
|
||||||
pub use editor_settings::EditorSettings;
|
pub use editor_settings::EditorSettings;
|
||||||
|
pub use element::RenderExcerptHeaderParams;
|
||||||
pub use element::{
|
pub use element::{
|
||||||
Cursor, EditorElement, HighlightedRange, HighlightedRangeLine, LineWithInvisibles,
|
Cursor, EditorElement, HighlightedRange, HighlightedRangeLine, LineWithInvisibles,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue