Skip to content

Commit 3dcf99d

Browse files
authored
ignore .(anything) files when checking for changes (#3237)
* ignore .(anything) files when checking for changes * made lint happy
1 parent 9c796eb commit 3dcf99d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/services/project-changes-service.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,12 @@ export class ProjectChangesService implements IProjectChangesService {
219219
}
220220

221221
private containsNewerFiles(dir: string, skipDir: string, projectData: IProjectData, processFunc?: (filePath: string, projectData: IProjectData) => boolean): boolean {
222+
223+
const dirName = path.basename(dir);
224+
if (_.startsWith(dirName, '.')) {
225+
return false;
226+
}
227+
222228
const dirFileStat = this.$fs.getFsStats(dir);
223229
if (this.isFileModified(dirFileStat, dir)) {
224230
return true;

0 commit comments

Comments
 (0)