sussudio
Version:
An unofficial VS Code Internal API
17 lines (16 loc) • 931 B
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 { 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>;
}