Refactor staff mode into a seperate crate and make copilot initialization wait for the staff mode flag to be flipped

This commit is contained in:
Mikayla Maki 2023-04-03 20:16:45 -07:00
parent 1627cf7eae
commit 6bfecd7f66
14 changed files with 100 additions and 32 deletions

View file

@ -8,6 +8,7 @@ use node_runtime::NodeRuntime;
use serde_json::json;
use settings::{keymap_file_json_schema, settings_file_json_schema};
use smol::fs;
use staff_mode::StaffMode;
use std::{
any::Any,
ffi::OsString,
@ -17,7 +18,7 @@ use std::{
};
use theme::ThemeRegistry;
use util::http::HttpClient;
use util::{paths, ResultExt, StaffMode};
use util::{paths, ResultExt};
const SERVER_PATH: &'static str =
"node_modules/vscode-json-languageserver/bin/vscode-json-languageserver";