mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
chore: added dependencies
Signed-off-by: Gabriel <gaccettola@mirantis.com>
This commit is contained in:
1 parent
f9ea643320
commit
d27c6ff678
14 files changed
+2515
-1536
No files matched your search
+3
-4
@@ -3,9 +3,8 @@
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
import type { Injectable } from "@ogre-tools/injectable";
|
||||
import { asLegacyGlobalForExtensionApi } from "./as-legacy-global-object-for-extension-api";
|
||||
import { getLegacyGlobalDiForExtensionApi } from "./legacy-global-di-for-extension-api";
|
||||
import { loggerInjectable } from "@k8slens/logger";
|
||||
import { asLegacyGlobalForExtensionApi, getLegacyGlobalDiForExtensionApi } from "@k8slens/legacy-global-di";
|
||||
import { loggerInjectionToken } from "@k8slens/logger";
|
||||
|
||||
export interface LegacySingleton<T> {
|
||||
createInstance(): T;
|
||||
@@ -32,7 +31,7 @@ export function asLegacyGlobalSingletonForExtensionApi<Instance, InstantiationPa
|
||||
|
||||
resetInstance: () => {
|
||||
const di = getLegacyGlobalDiForExtensionApi();
|
||||
const logger = di.inject(loggerInjectable);
|
||||
const logger = di.inject(loggerInjectionToken);
|
||||
|
||||
logger.warn(
|
||||
`resetInstance() for a legacy global singleton of "${injectable.id}" does nothing.`,
|
||||
|
||||
Reference in new issue
Block a user