UNPKG

rhamt-vscode-extension

Version:

RHAMT VSCode extension

35 lines (28 loc) 1.33 kB
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ import * as path from "path"; import { localize } from "./localize"; import { IRhamtTreeItem } from "./index"; export const loadingIconPath: { light: string, dark: string } = { light: path.join(__filename, '..', '..', '..', 'resources', 'icons', 'light', 'Loading.svg'), dark: path.join(__filename, '..', '..', '..', 'resources', 'icons', 'dark', 'Loading.svg') }; export class CreatingTreeItem implements IRhamtTreeItem { public static contextValue: string = 'rhamtCreating'; public readonly contextValue: string = CreatingTreeItem.contextValue; private readonly _label: string; constructor(label: string) { this._label = label; } public get id(): string { return CreatingTreeItem.contextValue + this._label; } public get label(): string { return localize('creatingNode', 'Creating {0}...', this._label); } public get iconPath(): { light: string, dark: string } { return loadingIconPath; } }