Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rebornix committed Aug 24, 2023
1 parent d6330cc commit 7a860fb
Showing 1 changed file with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { NotebookTextModel } from 'vs/workbench/contrib/notebook/common/model/no
import { PLAINTEXT_LANGUAGE_ID } from 'vs/editor/common/languages/modesRegistry';
import { IMenu, IMenuService } from 'vs/platform/actions/common/actions';
import { NotebookKernelHistoryService } from 'vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl';
import { IStorageService, IWillSaveStateEvent, StorageScope } from 'vs/platform/storage/common/storage';
import { IApplicationStorageValueChangeEvent, IProfileStorageValueChangeEvent, IStorageService, IStorageValueChangeEvent, IWillSaveStateEvent, IWorkspaceStorageValueChangeEvent, StorageScope } from 'vs/platform/storage/common/storage';
import { INotebookLoggingService } from 'vs/workbench/contrib/notebook/common/notebookLoggingService';

suite('NotebookKernelHistoryService', () => {
Expand Down Expand Up @@ -70,6 +70,12 @@ suite('NotebookKernelHistoryService', () => {

instantiationService.stub(IStorageService, new class extends mock<IStorageService>() {
override onWillSaveState: Event<IWillSaveStateEvent> = Event.None;
override onDidChangeValue(scope: StorageScope.WORKSPACE, key: string | undefined, disposable: DisposableStore): Event<IWorkspaceStorageValueChangeEvent>;
override onDidChangeValue(scope: StorageScope.PROFILE, key: string | undefined, disposable: DisposableStore): Event<IProfileStorageValueChangeEvent>;
override onDidChangeValue(scope: StorageScope.APPLICATION, key: string | undefined, disposable: DisposableStore): Event<IApplicationStorageValueChangeEvent>;
override onDidChangeValue(scope: StorageScope, key: string | undefined, disposable: DisposableStore): Event<IStorageValueChangeEvent> {
return Event.None;
}
override get(key: string, scope: StorageScope, fallbackValue: string): string;
override get(key: string, scope: StorageScope, fallbackValue?: string | undefined): string | undefined;
override get(key: unknown, scope: unknown, fallbackValue?: unknown): string | undefined {
Expand Down Expand Up @@ -119,6 +125,12 @@ suite('NotebookKernelHistoryService', () => {

instantiationService.stub(IStorageService, new class extends mock<IStorageService>() {
override onWillSaveState: Event<IWillSaveStateEvent> = Event.None;
override onDidChangeValue(scope: StorageScope.WORKSPACE, key: string | undefined, disposable: DisposableStore): Event<IWorkspaceStorageValueChangeEvent>;
override onDidChangeValue(scope: StorageScope.PROFILE, key: string | undefined, disposable: DisposableStore): Event<IProfileStorageValueChangeEvent>;
override onDidChangeValue(scope: StorageScope.APPLICATION, key: string | undefined, disposable: DisposableStore): Event<IApplicationStorageValueChangeEvent>;
override onDidChangeValue(scope: StorageScope, key: string | undefined, disposable: DisposableStore): Event<IStorageValueChangeEvent> {
return Event.None;
}
override get(key: string, scope: StorageScope, fallbackValue: string): string;
override get(key: string, scope: StorageScope, fallbackValue?: string | undefined): string | undefined;
override get(key: unknown, scope: unknown, fallbackValue?: unknown): string | undefined {
Expand Down

0 comments on commit 7a860fb

Please sign in to comment.