mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Merge from vscode 4d91d96e5e121b38d33508cdef17868bab255eae
This commit is contained in:
committed by
AzureDataStudio
parent
a971aee5bd
commit
5e7071e466
@@ -8,10 +8,10 @@ import { createDecorator } from 'vs/platform/instantiation/common/instantiation'
|
||||
export const IStateService = createDecorator<IStateService>('stateService');
|
||||
|
||||
export interface IStateService {
|
||||
_serviceBrand: undefined;
|
||||
readonly _serviceBrand: undefined;
|
||||
|
||||
getItem<T>(key: string, defaultValue: T): T;
|
||||
getItem<T>(key: string, defaultValue?: T): T | undefined;
|
||||
setItem(key: string, data?: object | string | number | boolean | undefined | null): void;
|
||||
removeItem(key: string): void;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -126,7 +126,7 @@ export class FileStorage {
|
||||
|
||||
export class StateService implements IStateService {
|
||||
|
||||
_serviceBrand: undefined;
|
||||
declare readonly _serviceBrand: undefined;
|
||||
|
||||
private static readonly STATE_FILE = 'storage.json';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user