diff options
author | David Lechner <david@lechnology.com> | 2022-04-06 03:24:10 +0300 |
---|---|---|
committer | Alexandru Dima <alexdima@microsoft.com> | 2022-05-11 16:09:16 +0300 |
commit | 816047831e7818d128599cc07cae4b7da2431a95 (patch) | |
tree | 295a951f5f8fd302aed0577edc6bb485d7d4c84b | |
parent | 8bfeb84fe013c5a922521c2c787c6a74dc15f890 (diff) |
more instances
-rw-r--r-- | src/vs/editor/browser/editorBrowser.ts | 2 | ||||
-rw-r--r-- | src/vs/editor/common/editorCommon.ts | 2 | ||||
-rw-r--r-- | 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 235f39f3df3..e620b237b81 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 502ad529340..69bcb525d4d 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 83086200c6f..43215ef7ef7 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. */ |