mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-07 20:39:04 +03:00
Remove new CTA in copilot sign in UI
Add a trim_end to copilot suggestions
This commit is contained in:
parent
745e5e3a09
commit
2882e0fa5b
@ -199,20 +199,6 @@ impl CopilotCodeVerification {
|
||||
},
|
||||
)
|
||||
.boxed(),
|
||||
theme::ui::cta_button_with_click(
|
||||
"Disable Copilot Integration",
|
||||
style.auth.content_width,
|
||||
&style.auth.cta_button,
|
||||
cx,
|
||||
{
|
||||
move |_, cx| {
|
||||
SettingsFile::update(cx, move |settings| {
|
||||
settings.features.copilot = Some(false);
|
||||
});
|
||||
}
|
||||
},
|
||||
)
|
||||
.boxed(),
|
||||
])
|
||||
.align_children_center()
|
||||
.boxed()
|
||||
|
@ -2995,11 +2995,11 @@ impl Editor {
|
||||
.copilot_state
|
||||
.text_for_active_completion(cursor, &snapshot)
|
||||
{
|
||||
self.display_map.update(cx, |map, cx| {
|
||||
self.display_map.update(cx, move |map, cx| {
|
||||
map.replace_suggestion(
|
||||
Some(Suggestion {
|
||||
position: cursor,
|
||||
text: text.into(),
|
||||
text: text.trim_end().into(),
|
||||
}),
|
||||
cx,
|
||||
)
|
||||
|
@ -113,7 +113,7 @@ export default function copilot(colorScheme: ColorScheme) {
|
||||
},
|
||||
dimensions: {
|
||||
width: 280,
|
||||
height: 320,
|
||||
height: 280,
|
||||
},
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user