Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow null in ICodeEditor.restoreViewState() #146866

Merged
merged 2 commits into from
May 11, 2022
Merged

Conversation

dlech
Copy link
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
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