From f03cc59688e6aaa7147334f9d076ab643bd410f6 Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Tue, 20 Jul 2021 09:32:37 -0400 Subject: [PATCH] Wait for a file to be stable before computing diff (#3427) Signed-off-by: Sebastian Malton --- src/main/catalog-sources/kubeconfig-sync.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/catalog-sources/kubeconfig-sync.ts b/src/main/catalog-sources/kubeconfig-sync.ts index 6a6f4120f9..e60d9400de 100644 --- a/src/main/catalog-sources/kubeconfig-sync.ts +++ b/src/main/catalog-sources/kubeconfig-sync.ts @@ -264,6 +264,12 @@ async function watchFileChanges(filePath: string): Promise<[IComputedValue>(); const derivedSource = computed(() => Array.from(iter.flatMap(rootSource.values(), from => iter.map(from.values(), child => child[1]))));