opensumi / core

🚀 A framework helps you quickly build AI Native IDE products. https://preview.opensumi.com
https://opensumi.com
MIT License
2.81k stars 354 forks source link

fix: lazy get layout modules #3793

Closed bytemain closed 1 month ago

bytemain commented 1 month ago

Types

Background or solution

我们的 AINativeModule 会在 initialize 阶段注入 Chat 面板,渲染也会保证在 appInitialized 后渲染面板。 但是有哪些面板的获取是在渲染过程中获取的,应该改为在 appInitialized 后获取。

Changelog

lazy get layout modules

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 55.32%. Comparing base (f891d67) to head (04ec6fc).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## v3.1 #3793 +/- ## ======================================= Coverage 55.32% 55.32% ======================================= Files 1540 1540 Lines 93906 93906 Branches 19282 19282 ======================================= Hits 51949 51949 Misses 34807 34807 Partials 7150 7150 ``` | [Flag](https://app.codecov.io/gh/opensumi/core/pull/3793/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensumi) | Coverage Δ | | |---|---|---| | [jsdom](https://app.codecov.io/gh/opensumi/core/pull/3793/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensumi) | `50.78% <ø> (ø)` | | | [node](https://app.codecov.io/gh/opensumi/core/pull/3793/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensumi) | `15.55% <ø> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensumi#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.