Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add patch lockfile for multiple instances #500

Merged
merged 3 commits into from
Nov 14, 2024
Merged

Conversation

shalldie
Copy link
Owner

@shalldie shalldie commented Nov 14, 2024

Checklist - zh-CN

  • 阅读 贡献指南
  • 把 issue 和 pr 相关联.
  • 确保代码与 master 分支保持同步.
  • 尽可能详细的描述所做的变更.

在存在多个实例(窗口)运行时,在 更新vscode初次安装background 会造成同时写入同一个文件的case。
在窗口越多、安装插件越多时,发生概率越大。

添加了文件锁避免这种情况,所有实例命令在 1000s * 30 内执行完毕不会发生竞态。
... 但也存在极端情况,比如开了几十个窗口,又装了几十个插件 =。=

@shalldie shalldie merged commit 2d1e4e2 into master Nov 14, 2024
2 checks passed
@shalldie shalldie deleted the fix-patch-lock branch November 14, 2024 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant