"use strict";
/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.NullPowerService = exports.IPowerService = void 0;
const event_1 = require("../../../util/vs/base/common/event");
const instantiation_1 = require("../../../util/vs/platform/instantiation/common/instantiation");
exports.IPowerService = (0, instantiation_1.createDecorator)('IPowerService');
/**
 * A no-op implementation of {@link IPowerService} for environments where
 * power save blocking is not supported (e.g., web, headless, tests).
 */
class NullPowerService {
    constructor() {
        this.onDidSuspend = event_1.Event.None;
        this.onDidResume = event_1.Event.None;
    }
    acquirePowerSaveBlocker() {
        return { dispose: () => { } };
    }
}
exports.NullPowerService = NullPowerService;
//# sourceMappingURL=powerService.js.map