Add JSON language server

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Max Brunsfeld 2022-03-03 13:29:25 -08:00
parent bf1153cedd
commit 0582c557e3
4 changed files with 189 additions and 65 deletions

View file

@ -102,10 +102,13 @@ struct Error {
impl LanguageServer {
pub fn new(
binary_path: &Path,
args: &[&str],
root_path: &Path,
background: Arc<executor::Background>,
) -> Result<Arc<Self>> {
let mut server = Command::new(binary_path)
.current_dir(root_path)
.args(args)
.stdin(Stdio::piped())
.stdout(Stdio::piped())
.stderr(Stdio::inherit())