提交 0d3e7523 编写于 作者: B Benjamin Pasero

fix watchFileChanges

上级 00f5d941
......@@ -1017,7 +1017,8 @@ export class FileService extends Disposable implements IFileService {
if (renamedOrDeleted) {
// Very important to dispose the watcher which now points to a stale inode
this.unwatchFileChanges(resource);
watcher.close();
this.activeFileChangesWatchers.delete(resource);
// Wait a bit and try to install watcher again, assuming that the file was renamed quickly ("Atomic Save")
setTimeout(() => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册