Skip to content

Commit

Permalink
Add File paths when a file is written
Browse files Browse the repository at this point in the history
  • Loading branch information
piascikj committed Sep 12, 2024
1 parent 4e6de0f commit f25826c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions lib/mixins/repo-fs-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ function mixin(repo, fs = require('fs')) {

file.setModifiedTime(stats.mtime)
file.modified = false
repo.addFilePath(filePath)
if (emitFileUpdate) repo.emit('file.saved', file)
cb(null, file)
})
Expand Down
1 change: 0 additions & 1 deletion lib/project.js
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,6 @@ module.exports = class WorkerProject extends Project {

this.repo.moveTask({ task, newList, newPos }, (err) => {
if (err) return reject(err)

resolve({ file, task })
})
})
Expand Down

0 comments on commit f25826c

Please sign in to comment.