diff --git a/lib/services/livesync/platform-livesync-service.ts b/lib/services/livesync/platform-livesync-service.ts index 5b0ec7ab10..78d39d4e12 100644 --- a/lib/services/livesync/platform-livesync-service.ts +++ b/lib/services/livesync/platform-livesync-service.ts @@ -110,9 +110,19 @@ export abstract class PlatformLiveSyncServiceBase implements IPlatformLiveSyncSe } }); + // skip hidden files, to prevent reload of the app for hidden files + // created temporarily by the IDEs + if (this.isUnixHiddenPath(filePath)) { + isFileExcluded = true; + } + return isFileExcluded; } + private isUnixHiddenPath(filePath: string): boolean { + return (/(^|\/)\.[^\/\.]/g).test(filePath); + } + private batchSync(filePath: string, dispatcher: IFutureDispatcher, afterFileSyncAction: (deviceAppData: Mobile.IDeviceAppData, localToDevicePaths: Mobile.ILocalToDevicePathData[]) => Promise, projectData: IProjectData): void { let platformBatch: ISyncBatch = this.batch[this.liveSyncData.platform]; if (!platformBatch || !platformBatch.syncPending) {