-
Notifications
You must be signed in to change notification settings - Fork 422
fix: not displayed when widget.disposed #4494
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
base: main
Are you sure you want to change the base?
Conversation
/next |
Walkthroughๅจ Changes
Sequence Diagram(s)sequenceDiagram
participant CT as CommentsThread
participant W as Widget
participant E as ็ผ่พๅจ
E->>CT: ่ฏทๆฑๆพ็คบ widget
CT->>W: ๆฃๆฅ widget.disposed ็ถๆ
alt widget ๆชๅค็ฝฎ
W->>W: ๆง่ก show()
else widget ๅทฒๅค็ฝฎ
CT-->>E: ่ทณ่ฟๆพ็คบ
end
Possibly related PRs
Suggested labels
Suggested reviewers
Warning There were issues while running some tools. Please review the errors and either fix the toolโs configuration or disable the tool if itโs a critical failure. ๐ง ESLint
yarn install v1.22.22 โจ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. ๐ชง TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
๐งน Nitpick comments (1)
packages/comments/src/browser/comments-thread.ts (1)
256-258
: ๆญฃ็กฎๅฐๅขๅ ไบ widget.disposed ๆฃๆฅ๏ผ้ฟๅ ไบๅฏนๅทฒ้ๆฏ็ปไปถ็ๆไฝ๏ผ่ฟไธชไฟฎๆนๅพๅฅฝๅฐ่งฃๅณไบๅๆไปฃ็ ๅฏ่ฝ่ฐ็จๅทฒ้ๆฏ widget ็ show ๆนๆณ็้ฎ้ขใๅจ่ฐ็จ show ๆนๆณๅๆฃๆฅ widget ๆฏๅฆๅทฒ่ขซ้ๆฏ๏ผๅฏไปฅๆๆ้ฟๅ ๆฝๅจ็้่ฏฏใ
ไธ่ฟ๏ผๆไธไธชๅฐไผๅ็น๏ผๆข็ถๅทฒ็ปๆฃๆฅไบ
!widget.disposed
๏ผ้ฃไนๅ้ขไฝฟ็จwidget?.show()
ไธญ็ๅฏ้้พๆไฝ็ฌฆ?.
ๅฐฑๆพๅพๅคไฝไบ๏ผๅ ไธบๆไปฌๅทฒ็ป็กฎๅฎ widget ๅญๅจไธๆช่ขซ้ๆฏใๅฏไปฅ็ดๆฅไฝฟ็จwidget.show()
ใif (!widget.disposed) { - widget?.show(); + widget.show(); }
๐ Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
๐ Files selected for processing (1)
packages/comments/src/browser/comments-thread.ts
(1 hunks)
โฐ Context from checks skipped due to timeout of 90000ms (9)
- GitHub Check: ๐๐๐ Next Version for pull request
- GitHub Check: ubuntu-latest, Node.js 20.x
- GitHub Check: unittest (macos-latest, 18.x, node)
- GitHub Check: unittest (macos-latest, 18.x, jsdom)
- GitHub Check: unittest (ubuntu-latest, 18.x, jsdom)
- GitHub Check: unittest (ubuntu-latest, 18.x, node)
- GitHub Check: build (macos-latest, 20.x)
- GitHub Check: build (ubuntu-latest, 20.x)
- GitHub Check: build-windows
๐ PR Next publish successful! 3.8.3-next-1742817599.0 |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4494 +/- ##
==========================================
- Coverage 53.13% 53.13% -0.01%
==========================================
Files 1665 1665
Lines 102640 102641 +1
Branches 22215 22224 +9
==========================================
Hits 54535 54535
Misses 40019 40019
- Partials 8086 8087 +1
Flags with carried forward coverage won't be shown. Click here to find out more. โ View full report in Codecov by Sentry. ๐ New features to boost your workflow:
|
@wangxiaojuan ่ฟไธช้ฎ้ขๆๅค็ฐ่ทฏๅพๅ๏ผ |
Types
Background or solution
Changelog
fix: ไฟฎๅคwidgetไธบdisposedๅไธๅฑ็คบ
Summary by CodeRabbit