mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-12-23 08:47:50 +00:00
feat: implement clear_cache
This commit is contained in:
parent
50bd6af7d8
commit
47e4e43126
1 changed files with 1 additions and 7 deletions
|
|
@ -519,13 +519,7 @@ impl TypstServer {
|
|||
|
||||
/// Clear all cached resources.
|
||||
pub async fn clear_cache(&self, _arguments: Vec<JsonValue>) -> jsonrpc::Result<()> {
|
||||
// self.workspace().write().await.clear().map_err(|err| {
|
||||
// error!("could not clear cache: {err}");
|
||||
// jsonrpc::Error::internal_error()
|
||||
// })?;
|
||||
|
||||
// self.typst(|_| comemo::evict(0)).await;
|
||||
|
||||
comemo::evict(0);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue