mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
- This happens when there is an overlapping sync of a folder and a file within that folder both producing the same entities - This also fixes the LED not showing up on some KubernetesCluster instances because of this duplication the connected status was being set on the first instance, but renderer would use the second (because JS's Map constructor deduplicates its constructor initializer by taking the last) - Added some tests to cover this case Signed-off-by: Sebastian Malton <sebastian@malton.name>
15 lines
385 B
TypeScript
15 lines
385 B
TypeScript
/**
|
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
*/
|
|
import { getInjectable } from "@ogre-tools/injectable";
|
|
import { watch } from "chokidar";
|
|
|
|
const watchInjectable = getInjectable({
|
|
id: "watch",
|
|
instantiate: () => watch,
|
|
causesSideEffects: true,
|
|
});
|
|
|
|
export default watchInjectable;
|