Init copilot with client instead of http client
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user