desktop: "Open in <Editor>" menu in Review Pane opens workspace root directory instead of active file tab
维护者通常 1 天内回复
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 82/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- typescript
调研方向
找到 Review Pane 的标题组件,并追踪“Open in...”操作处理程序,以及活动标签页如何提供其文件路径。检查处理程序如何将目标传递给 openInApp;完成标准是选择编辑器会打开活动文件,并且在没有活动文件标签页时使用工作区目录。
由索引模型根据 Issue 内容生成。
描述
Summary
In the OpenCode Desktop Review / Workspace pane header, selecting an external editor (e.g., Sublime Text, Antigravity, Finder) from the top-right "Open in..." dropdown opens the workspace root directory instead of the currently active file tab displayed in the pane.
Environment
- opencode version: 2.2.5
- OS: Darwin 27.0.0 (macOS / darwin arm64)
- Terminal: Desktop App (Review Pane)
- Shell: /bin/zsh
- Install/channel: Desktop 2.2.5
- Active plugins: None
Reproduction
- Open a workspace in OpenCode Desktop.
- Open a specific file tab in the Review pane (e.g.,
queries/check_all_reg_properties.sql). - Click the top-right "Open in..." dropdown menu located beside the active tab bar.
- Select an external editor (e.g., "Sublime Text").
Expected Behavior
The selected editor opens the active file tab (/path/to/workspace/queries/check_all_reg_properties.sql).
Actual Behavior
The editor opens the entire workspace root folder (/path/to/workspace/) instead of the specific file tab being viewed.
Suggested Fix
Update the action handler in the Review Pane header component to prioritize the active tab file path:
const targetPath = activeTab?.filePath ?? workspace.directory;
openInApp(selectedApp, targetPath);
- 主要语言
- TypeScript
- 星标
- 224k
- 派生
- 30k
- 平均合并
- 5 小时 25 分钟
- 30 天内合并 PR
- 494
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
anomalyco/opencode 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
anomalyco/opencode#62322 · 1 条评论 ·
维护者通常 1 天内回复
-
pending close
难度 2/5 1-3 小时 新手友好度 76/100
anomalyco/opencode#62305 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 76/100
anomalyco/opencode#62210 · 1 条评论 ·
维护者通常 1 天内回复
-
tui: /models drops provider grouping when the session location differs from the default location可能重新可做 关联的 PR 已关闭且未合并。 未关闭reproduced
难度 2/5 1-3 小时 新手友好度 65/100
anomalyco/opencode#62105 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
anomalyco/opencode#62046 · 4 条评论 ·
维护者通常 1 天内回复
查看 anomalyco/opencode 的全部 Issue
相似的 Issue
-
Navbar avatar and name stay stale after saving profile changes可能已有人在做 @alexechoi 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
marmelab/atomic-crm#416 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
epam/ai-dial-react-file-manager#99 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
canonical/craft-actions#146 ·
维护者通常 2 天内回复
-
feature-request
难度 2/5 1-3 小时 新手友好度 66/100
bluesky-social/social-app#12343 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
lucide-icons/lucide#5165 ·
维护者通常 1 天内回复