You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
- Implements a robust preview mechanism to temporarily show `Kernel Overview` or `IR Code` for either side without mutating App-global data.
- Resolves issues of swapped sides or lost selections when returning from preview.
#### Key Changes
- Extends `FileDiffSession` with `preview` state and uses it in `App.tsx` to conditionally render preview targets.
- Defers tab switching in `gotoOverview/gotoIRCode` using `setTimeout(0)` to let Monaco unmount cleanly.
- Adds dynamic `key` props to `KernelOverview` and `CodeView` when previewing to force remount and proper default IR selection.
Pull Request resolved: #113
Reviewed By: sfzhu93
Differential Revision: D82745908
Pulled By: FindHao
fbshipit-source-id: 6fbd8baa6fa881951262e53ff9be4c59c4a0b836
0 commit comments