fix: log error
This commit is contained in:
parent
9f6cc7c4b7
commit
34455a1436
1 changed files with 4 additions and 1 deletions
|
@ -114,7 +114,10 @@ fn handle_request(&mut self, _id: u64, method: String, params: Value) {
|
||||||
match method.as_str() {
|
match method.as_str() {
|
||||||
Initialize::METHOD => {
|
Initialize::METHOD => {
|
||||||
let params: InitializeParams = serde_json::from_value(params).unwrap();
|
let params: InitializeParams = serde_json::from_value(params).unwrap();
|
||||||
let _ = initialize(params);
|
match initialize(params) {
|
||||||
|
Ok(_) => (),
|
||||||
|
Err(e) => PLUGIN_RPC.stderr(&format!("plugin returned with error: {e}")),
|
||||||
|
}
|
||||||
}
|
}
|
||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue