Closed bytemain closed 2 months ago
引入了一个新功能,用于控制是否在应用配置中恢复编辑器组状态。在 AppConfig
接口中新增了可选属性 disableRestoreEditorGroupState
。更新了 WorkbenchEditorServiceImpl
类以根据该属性有条件地恢复编辑器网格状态。同时在应用启动时进行了相应配置。
文件路径 | 变更概述 |
---|---|
packages/core-browser/src/.../config-provider.tsx |
在 AppConfig 接口中新增了 disableRestoreEditorGroupState 可选属性。 |
packages/editor/src/browser/.../workbench-editor.service.ts |
在 WorkbenchEditorServiceImpl 类中新增了 appConfig 私有属性,并在 restoreState 方法中根据 disableRestoreEditorGroupState 属性有条件地检索编辑器网格状态。 |
packages/startup/entry/web/.../app.tsx |
在 renderApp 函数中新增了 disableRestoreEditorGroupState 属性,并将其值设置为 true 。 |
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
🚅 Previously deployed to Railway in the core project. Environment has been deleted.
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 55.02%. Comparing base (
4b9caae
) to head (79dffda
). Report is 1 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Types
Background or solution
在某些事务性的场景下,是不需要恢复标签页的,因为要恢复的文件可能已经不存在了。
Changelog
support disable restore editor group state
Summary by CodeRabbit
disableRestoreEditorGroupState
属性,用于控制是否恢复编辑器组状态。