UNPKG

@sussudio/platform

Version:

Internal APIs for VS Code's service injection the base services.

20 lines (18 loc) 911 B
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ import { IStateService } from '../node/state.mjs'; export declare const IStateMainService: import('../../instantiation/common/instantiation.mjs').ServiceIdentifier<IStateMainService>; export interface IStateMainService extends IStateService { readonly _serviceBrand: undefined; setItem(key: string, data?: object | string | number | boolean | undefined | null): void; setItems( items: readonly { key: string; data?: object | string | number | boolean | undefined | null; }[], ): void; removeItem(key: string): void; close(): Promise<void>; }