/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the Source EULA. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/

import { IProductService } from 'vs/platform/product/common/product';
import product from 'vs/platform/product/node/product';
import pkg from 'vs/platform/product/node/package';

export class ProductService implements IProductService {

	_serviceBrand: any;

	get version(): string | undefined { return pkg.version; }

	get commit(): string | undefined { return product.commit; }

	get enableTelemetry(): boolean { return product.enableTelemetry; }
}
