Reenable work_done_progress
capability
This commit is contained in:
parent
612511dc98
commit
d095ec15d4
@ -185,25 +185,25 @@ pub fn reply(
|
|||||||
let server_tx = self.server_tx.clone();
|
let server_tx = self.server_tx.clone();
|
||||||
|
|
||||||
async move {
|
async move {
|
||||||
let output = match result {
|
let output = match result {
|
||||||
Ok(result) => Output::Success(Success {
|
Ok(result) => Output::Success(Success {
|
||||||
jsonrpc: Some(Version::V2),
|
jsonrpc: Some(Version::V2),
|
||||||
id,
|
id,
|
||||||
result,
|
result,
|
||||||
}),
|
}),
|
||||||
Err(error) => Output::Failure(Failure {
|
Err(error) => Output::Failure(Failure {
|
||||||
jsonrpc: Some(Version::V2),
|
jsonrpc: Some(Version::V2),
|
||||||
id,
|
id,
|
||||||
error,
|
error,
|
||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
server_tx
|
server_tx
|
||||||
.send(Payload::Response(output))
|
.send(Payload::Response(output))
|
||||||
.map_err(|e| Error::Other(e.into()))?;
|
.map_err(|e| Error::Other(e.into()))?;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// -------------------------------------------------------------------------------------------
|
// -------------------------------------------------------------------------------------------
|
||||||
@ -243,8 +243,7 @@ pub(crate) async fn initialize(&mut self) -> Result<()> {
|
|||||||
..Default::default()
|
..Default::default()
|
||||||
}),
|
}),
|
||||||
window: Some(lsp::WindowClientCapabilities {
|
window: Some(lsp::WindowClientCapabilities {
|
||||||
// TODO: temporarily disabled until we implement handling for window/workDoneProgress/create
|
work_done_progress: Some(true),
|
||||||
// work_done_progress: Some(true),
|
|
||||||
..Default::default()
|
..Default::default()
|
||||||
}),
|
}),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
|
Loading…
Reference in New Issue
Block a user