From 816047831e7818d128599cc07cae4b7da2431a95 Mon Sep 17 00:00:00 2001 From: David Lechner Date: Tue, 5 Apr 2022 19:24:10 -0500 Subject: [PATCH] more instances --- src/vs/editor/browser/editorBrowser.ts | 2 +- src/vs/editor/common/editorCommon.ts | 2 +- src/vs/monaco.d.ts | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/vs/editor/browser/editorBrowser.ts b/src/vs/editor/browser/editorBrowser.ts index 235f39f3df3ca..e620b237b81f4 100644 --- a/src/vs/editor/browser/editorBrowser.ts +++ b/src/vs/editor/browser/editorBrowser.ts @@ -1116,7 +1116,7 @@ export interface IDiffEditor extends editorCommon.IEditor { /** * Restores the view state of the editor from a serializable object generated by `saveViewState`. */ - restoreViewState(state: editorCommon.IDiffEditorViewState): void; + restoreViewState(state: editorCommon.IDiffEditorViewState | null): void; /** * Type the getModel() of IEditor. diff --git a/src/vs/editor/common/editorCommon.ts b/src/vs/editor/common/editorCommon.ts index 502ad52934010..69bcb525d4d80 100644 --- a/src/vs/editor/common/editorCommon.ts +++ b/src/vs/editor/common/editorCommon.ts @@ -273,7 +273,7 @@ export interface IEditor { /** * Restores the view state of the editor from a serializable object generated by `saveViewState`. */ - restoreViewState(state: IEditorViewState): void; + restoreViewState(state: IEditorViewState | null): void; /** * Given a position, returns a column number that takes tab-widths into account. diff --git a/src/vs/monaco.d.ts b/src/vs/monaco.d.ts index 83086200c6f45..43215ef7ef762 100644 --- a/src/vs/monaco.d.ts +++ b/src/vs/monaco.d.ts @@ -2373,7 +2373,7 @@ declare namespace monaco.editor { /** * Restores the view state of the editor from a serializable object generated by `saveViewState`. */ - restoreViewState(state: IEditorViewState): void; + restoreViewState(state: IEditorViewState | null): void; /** * Given a position, returns a column number that takes tab-widths into account. */ @@ -5124,7 +5124,7 @@ declare namespace monaco.editor { /** * Restores the view state of the editor from a serializable object generated by `saveViewState`. */ - restoreViewState(state: ICodeEditorViewState): void; + restoreViewState(state: ICodeEditorViewState | null): void; /** * Returns true if the text inside this editor or an editor widget has focus. */ @@ -5377,7 +5377,7 @@ declare namespace monaco.editor { /** * Restores the view state of the editor from a serializable object generated by `saveViewState`. */ - restoreViewState(state: IDiffEditorViewState): void; + restoreViewState(state: IDiffEditorViewState | null): void; /** * Type the getModel() of IEditor. */