diff --git a/.eslintignore b/.eslintignore index d29ce45fd..25ddee280 100644 --- a/.eslintignore +++ b/.eslintignore @@ -28,7 +28,6 @@ src/Common/ObjectCache.test.ts src/Common/ObjectCache.ts src/Common/QueriesClient.ts src/Common/Splitter.ts -src/Common/ThemeUtility.ts src/Common/UrlUtility.ts src/Config.ts src/Contracts/ActionContracts.ts diff --git a/src/Common/ThemeUtility.ts b/src/Common/ThemeUtility.ts index 1c9fc7671..ae0e6872c 100644 --- a/src/Common/ThemeUtility.ts +++ b/src/Common/ThemeUtility.ts @@ -2,18 +2,16 @@ * Copyright (C) Microsoft Corporation. All rights reserved. *----------------------------------------------------------*/ -export default class ThemeUtility { - public static getMonacoTheme(theme: string): string { - switch (theme) { - case "default": - case "hc-white": - return "vs"; - case "dark": - return "vs-dark"; - case "hc-black": - return "hc-black"; - default: - return "vs"; - } +export function getMonacoTheme(theme: string): string { + switch (theme) { + case "default": + case "hc-white": + return "vs"; + case "dark": + return "vs-dark"; + case "hc-black": + return "hc-black"; + default: + return "vs"; } } diff --git a/src/Explorer/Tabs/TabsBase.ts b/src/Explorer/Tabs/TabsBase.ts index 2ea43e7f6..fe2fa8edf 100644 --- a/src/Explorer/Tabs/TabsBase.ts +++ b/src/Explorer/Tabs/TabsBase.ts @@ -7,7 +7,7 @@ import { Action, ActionModifiers } from "../../Shared/Telemetry/TelemetryConstan import { RouteHandler } from "../../RouteHandlers/RouteHandler"; import { WaitsForTemplateViewModel } from "../WaitsForTemplateViewModel"; import * as TelemetryProcessor from "../../Shared/Telemetry/TelemetryProcessor"; -import ThemeUtility from "../../Common/ThemeUtility"; +import * as ThemeUtility from "../../Common/ThemeUtility"; import Explorer from "../Explorer"; import { CommandButtonComponentProps } from "../Controls/CommandButton/CommandButtonComponent";