We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1bfab3 commit 7158be0Copy full SHA for 7158be0
src/environment-base.ts
@@ -875,7 +875,7 @@ export default class EnvironmentBase extends EventEmitter implements BaseEnviron
875
// Conflicter can change files add listener before commit task.
876
const changedFileHandler = (filePath: string) => {
877
const file = this.sharedFs.get(filePath);
878
- if (isFilePending(file)) {
+ if (file && isFilePending(file)) {
879
queueCommit();
880
this.sharedFs.removeListener('change', changedFileHandler);
881
}
0 commit comments