@sussudio/platform
Version:
Internal APIs for VS Code's service injection the base services.
30 lines (28 loc) • 1.52 kB
text/typescript
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { Event } from '@sussudio/base/common/event.mjs';
import { Disposable } from '@sussudio/base/common/lifecycle.mjs';
import { IServerChannel } from '@sussudio/base/parts/ipc/common/ipc.mjs';
import { ILogService } from '../../log/common/log.mjs';
import { IBaseSerializableStorageRequest } from '../../storage/common/storageIpc.mjs';
import { IStorageMainService } from '../../storage/electron-main/storageMainService.mjs';
import { IUserDataProfilesService } from '../common/userDataProfile.mjs';
export declare class ProfileStorageChangesListenerChannel extends Disposable implements IServerChannel {
private readonly storageMainService;
private readonly userDataProfilesService;
private readonly logService;
private readonly _onDidChange;
constructor(
storageMainService: IStorageMainService,
userDataProfilesService: IUserDataProfilesService,
logService: ILogService,
);
private registerStorageChangeListeners;
private onDidChangeApplicationStorage;
private onDidChangeProfileStorage;
private triggerEvents;
listen(_: unknown, event: string, arg: IBaseSerializableStorageRequest): Event<any>;
call(_: unknown, command: string): Promise<any>;
}