We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9a4dee commit 027e4abCopy full SHA for 027e4ab
crates/pgt_workspace/src/workspace/server/annotation.rs
@@ -47,7 +47,6 @@ impl AnnotationStore {
47
annotations
48
}
49
50
- #[allow(unused)]
51
pub fn clear_statement(&self, id: &StatementId) {
52
self.db.remove(id);
53
crates/pgt_workspace/src/workspace/server/parsed_document.rs
@@ -73,6 +73,7 @@ impl ParsedDocument {
73
self.cst_db.remove_statement(s);
74
self.ast_db.clear_statement(s);
75
self.sql_fn_db.clear_statement(s);
76
+ self.annotation_db.clear_statement(s);
77
78
StatementChange::Modified(s) => {
79
tracing::debug!(
@@ -88,6 +89,7 @@ impl ParsedDocument {
88
89
self.cst_db.modify_statement(s);
90
self.ast_db.clear_statement(&s.old_stmt);
91
self.sql_fn_db.clear_statement(&s.old_stmt);
92
+ self.annotation_db.clear_statement(&s.old_stmt);
93
94
95
0 commit comments