Skip to content

Commit c41e64e

Browse files
Fatme HavaluovaFatme Havaluova
Fatme Havaluova
authored and
Fatme Havaluova
committed
Respect additiional fast sync file extensions
1 parent 8d93603 commit c41e64e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

lib/providers/livesync-provider.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@ export class LiveSyncProvider implements ILiveSyncProvider {
4343
}).future<void>()();
4444
}
4545

46-
public canExecuteFastSync(filePath: string): boolean {
47-
return _.contains(LiveSyncProvider.FAST_SYNC_FILE_EXTENSIONS, path.extname(filePath));
46+
public canExecuteFastSync(filePath: string, platform: string): boolean {
47+
let platformData = this.$platformsData.getPlatformData(platform);
48+
let fastSyncFileExtensions = LiveSyncProvider.FAST_SYNC_FILE_EXTENSIONS.concat(platformData.fastLivesyncFileExtensions);
49+
return _.contains(fastSyncFileExtensions, path.extname(filePath));
4850
}
4951
}
5052
$injector.register("liveSyncProvider", LiveSyncProvider);

0 commit comments

Comments
 (0)