Skip to content

fix:IDE cannot fully restore to the previous state after restarting. #15898

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

Merged
merged 1 commit into from
Jul 8, 2025

Conversation

zhangzejun123
Copy link
Contributor

@zhangzejun123 zhangzejun123 commented Jun 27, 2025

What it does

Fixes #15201
I think that the previous modification set the model to null after the editor was hidden, so nothing would be done in editor.saveViewState(). However, savedViewState was set when the editor was hidden, so we only need to read this value.So I modified the storeViewState and restoreViewState functions in monaco-editor

How to test

1.I compiled theia-ide application locally, and it was verified that this is effective and can solve the problem #15201
2.For example, the gif image operation in #15201 will get the expected result

Follow-ups

Breaking changes

  • This PR introduces breaking changes and requires careful review. If yes, the breaking changes section in the changelog has been updated.

Attribution

Review checklist

Reminder for reviewers

@github-project-automation github-project-automation bot moved this to Waiting on reviewers in PR Backlog Jun 27, 2025
@zhangzejun123
Copy link
Contributor Author

reopen from #15890

@zhangzejun123 zhangzejun123 changed the title fix store view ,fix #15201 fix:IDE cannot fully restore to the previous state after restarting. Jul 8, 2025
@github-project-automation github-project-automation bot moved this from Waiting on reviewers to Needs merge in PR Backlog Jul 8, 2025
@tsmaeder tsmaeder merged commit 9955a8d into eclipse-theia:master Jul 8, 2025
10 of 11 checks passed
@github-project-automation github-project-automation bot moved this from Needs merge to Done in PR Backlog Jul 8, 2025
@github-actions github-actions bot added this to the 1.64.0 milestone Jul 8, 2025
laemmleint pushed a commit to mvtecsoftware/theia that referenced this pull request Aug 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

The IDE cannot fully restore to the previous state after restarting.
2 participants