File tree 1 file changed +11
-5
lines changed
1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,8 @@ export class ProjectChangesService implements IProjectChangesService {
47
47
constructor (
48
48
private $platformsData : IPlatformsData ,
49
49
private $devicePlatformsConstants : Mobile . IDevicePlatformsConstants ,
50
- private $fs : IFileSystem ) {
50
+ private $fs : IFileSystem ,
51
+ private $hostInfo : IHostInfo ) {
51
52
}
52
53
53
54
public get currentChanges ( ) : IProjectChangesInfo {
@@ -227,10 +228,15 @@ export class ProjectChangesService implements IProjectChangesService {
227
228
228
229
let fileStats = this . $fs . getFsStats ( filePath ) ;
229
230
230
- let changed = fileStats . mtime . getTime ( ) >= this . _outputProjectMtime || fileStats . ctime . getTime ( ) >= this . _outputProjectCTime ;
231
- if ( ! changed ) {
232
- let lFileStats = this . $fs . getLsStats ( filePath ) ;
233
- changed = lFileStats . mtime . getTime ( ) >= this . _outputProjectMtime || lFileStats . ctime . getTime ( ) >= this . _outputProjectCTime ;
231
+ let changed = fileStats . mtime . getTime ( ) > this . _outputProjectMtime ||
232
+ fileStats . ctime . getTime ( ) >= this . _outputProjectCTime
233
+
234
+ if ( this . $hostInfo . isDarwin && ! fileStats . isDirectory ( ) && ! changed ) {
235
+ const parentDirPath : string = path . dirname ( filePath ) ;
236
+ const parentDirStat = this . $fs . getFsStats ( parentDirPath ) ;
237
+
238
+ changed = parentDirStat . mtime . getTime ( ) > this . _outputProjectMtime ||
239
+ parentDirStat . ctime . getTime ( ) >= this . _outputProjectCTime ;
234
240
}
235
241
236
242
if ( changed ) {
You can’t perform that action at this time.
0 commit comments