Skip to content

Commit 0433efb

Browse files
committed
fix: update snippets count when a snippet is deleted
1 parent 60d46be commit 0433efb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/extensionsIntegrated/CustomSnippets/src/snippetsList.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ define(function (require, exports, module) {
145145
Global.SnippetHintsList.splice(index, 1); // removes it from the actual array
146146
// save to preferences after deleting snippet
147147
SnippetsState.saveSnippetsToState();
148+
// update the snippets count in toolbar
149+
Helper.updateSnippetsCount();
148150
// Refresh the entire list to properly handle filtering
149151
showSnippetsList();
150152
}

0 commit comments

Comments
 (0)