Add JSON language server
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
bf1153cedd
commit
0582c557e3
4 changed files with 189 additions and 65 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue