Skip to content

Commit

Permalink
🐛 修复忽略文件不同步的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
CodFrm committed Mar 26, 2023
1 parent 32dcf29 commit 0959ef1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "scriptcat-vscode",
"description": "tampermonkey,userscript,scriptcat辅助开发扩展",
"repository": "https://github.com/scriptscat/scriptcat-vscode",
"version": "0.3.0",
"version": "0.3.1",
"publisher": "CodFrm",
"icon": "icons/logo.png",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion src/sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export class Synchronizer {
// 监听文件变动
private updateFileWatcher() {
this.watcher.onDidChange((ev) => {
this.onChange(ev);
if (this.context.workspaceState.get("ignore_msg_" + ev.path)) {
return;
}
Expand All @@ -74,7 +75,6 @@ export class Synchronizer {
this.context.workspaceState.update("ignore_msg_" + ev.path, true);
}
});
this.onChange(ev);
});
this.watcher.onDidCreate((ev) => {
this.onChange(ev);
Expand Down

0 comments on commit 0959ef1

Please sign in to comment.