Skip to content

Commit

Permalink
fix change event api usage
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Nov 15, 2023
1 parent eddefb1 commit c4c3ac6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/environment-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,8 @@ export default class EnvironmentBase extends EventEmitter implements BaseEnviron
async () => {
debug('Adding queueCommit listener');
// Conflicter can change files add listener before commit task.
const changedFileHandler = (file: MemFsEditorFile) => {
const changedFileHandler = (filePath: string) => {
const file = this.sharedFs.get(filePath);
if (isFilePending(file)) {
queueCommit();
this.sharedFs.removeListener('change', changedFileHandler);
Expand Down

0 comments on commit c4c3ac6

Please sign in to comment.