Start integrating Copilot with editor

There's still a bit to do in terms of reusing the previous suggestion
when the prefix matches, but we're getting there.
This commit is contained in:
Antonio Scandurra 2023-03-26 12:30:21 +02:00 committed by Mikayla Maki
parent b16e2169ce
commit 2f95510a2e
6 changed files with 183 additions and 12 deletions

View file

@ -7,7 +7,7 @@ use gpui::{
use settings::Settings;
pub fn init(cx: &mut MutableAppContext) {
let copilot = Copilot::global(cx);
let copilot = Copilot::global(cx).unwrap();
let mut code_verification_window_id = None;
cx.observe(&copilot, move |copilot, cx| {