Skip to content

allow null in ICodeEditor.restoreViewState()#146866

Merged
alexdima merged 2 commits intomicrosoft:mainfrom
dlech:patch-9
May 11, 2022
Merged

allow null in ICodeEditor.restoreViewState()#146866
alexdima merged 2 commits intomicrosoft:mainfrom
dlech:patch-9

Conversation

@dlech
Copy link
Copy Markdown
Contributor

@dlech dlech commented Apr 6, 2022

This changes the state parameter type of ICodeEditor.restoreViewState() to match the return type of ICodeEditor.saveViewState() (source).

The implementing function allows null as seen in the source.

This PR fixes #

dlech and others added 2 commits May 11, 2022 15:09
This changes the state parameter type of `ICodeEditor.restoreViewState()` to match the return type of `ICodeEditor.saveViewState()` ([source](https://github.com/microsoft/vscode/blob/3698a0b247d7c252b31bd25631647911328ae513/src/vs/monaco.d.ts#L2354)). 

The implementing function allows null as seen in [the source](https://github.com/microsoft/vscode/blob/b57db0fc49ee5777a4e02e8936f5b8cb9fb6182d/src/vs/editor/browser/widget/codeEditorWidget.ts#L995).
@alexdima alexdima added this to the May 2022 milestone May 11, 2022
@alexdima
Copy link
Copy Markdown
Member

Thank you!

@alexdima alexdima merged commit 66fccc7 into microsoft:main May 11, 2022
@dlech dlech deleted the patch-9 branch May 11, 2022 14:59
@github-actions github-actions bot locked and limited conversation to collaborators Jun 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants