refactor: 将codex-session-man改为 VS Code 原生多视图布局#2
Open
PairZhu wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
这个 PR 将原来单一的大型 Webview 会话管理界面,重构为 VS Code 原生的多视图布局。
主要目标是让交互方式更接近资源管理器 / GitLens 这类 VS Code 原生面板:
具体改动
Codex SessionsActivity Bar 容器ControlsSessionsDetailsMessagesTreeViewpackage.json中的视图注册和扩展入口逻辑改动原因
原来的布局有几个比较明显的问题:
这些问题本质上不是单纯靠 Webview 内部 CSS 就能彻底解决的,更适合直接利用 VS Code 自身提供的视图系统来处理。
结果
重构后:
效果展示
说明
这个 PR 主要聚焦于界面结构和交互方式的重构,没有刻意引入额外的业务功能变更。