Init copilot with client instead of http client

This commit is contained in:
Joseph Lyons
2023-05-16 03:12:39 -04:00
parent f50afefed3
commit a7fc07a8cd
4 changed files with 28 additions and 15 deletions
+2 -1
View File
@@ -178,7 +178,6 @@ fn main() {
vim::init(cx);
terminal_view::init(cx);
theme_testbench::init(cx);
copilot::init(http.clone(), node_runtime, cx);
cx.spawn(|cx| watch_themes(fs.clone(), themes.clone(), cx))
.detach();
@@ -197,6 +196,8 @@ fn main() {
cx.global::<Settings>().telemetry(),
);
copilot::init(&client, node_runtime, cx);
let app_state = Arc::new(AppState {
languages,
themes,