From 8759f881999cc13539cbfd450675280191296e65 Mon Sep 17 00:00:00 2001 From: Yosif Yosifov Date: Mon, 27 Mar 2017 10:22:27 +0300 Subject: [PATCH 1/2] Fix multiple mkdir commands for the same directory #2653 --- lib/common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common b/lib/common index f0fec92382..b0aad503a3 160000 --- a/lib/common +++ b/lib/common @@ -1 +1 @@ -Subproject commit f0fec923825f23c6ed85acfd8de3eff5c860560c +Subproject commit b0aad503a33098007db3308c9d7043da618190e0 From e792f1c69c265947a87678ee6d57222b5892adec Mon Sep 17 00:00:00 2001 From: Yosif Yosifov Date: Mon, 27 Mar 2017 16:53:19 +0300 Subject: [PATCH 2/2] skip the hidden files when livesyncing --- lib/services/livesync/platform-livesync-service.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) 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) {