Decouple clearing condition cache from evaluating general messages

This commit is contained in:
Oliver Hamlet
2026-01-02 10:15:39 +00:00
parent 364e2d25c0
commit 46c3ddc884
9 changed files with 121 additions and 41 deletions
+10
View File
@@ -128,6 +128,16 @@ impl Database {
.map_err(Into::into)
}
#[napi]
pub fn clear_condition_cache(&self) -> Result<(), VerboseError> {
self.0
.write()
.map_err(DatabaseLockPoisonError::from)?
.clear_condition_cache();
Ok(())
}
#[napi]
pub fn known_bash_tags(&self) -> Result<Vec<String>, VerboseError> {
Ok(self