/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45import { Emitter } from './event.js';67export class IMEImpl {89private readonly _onDidChange = new Emitter<void>();10public readonly onDidChange = this._onDidChange.event;1112private _enabled = true;1314public get enabled() {15return this._enabled;16}1718/**19* Enable IME20*/21public enable(): void {22this._enabled = true;23this._onDidChange.fire();24}2526/**27* Disable IME28*/29public disable(): void {30this._enabled = false;31this._onDidChange.fire();32}33}3435export const IME = new IMEImpl();363738