GitHub Actions extension fails with "Unable to connect to the GitHub API" in .code-workspace (works with Open Folder)
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- github-actions, typescript
- 领域
- devtools
调研方向
使用报告的 multi-root .code-workspace 重现该故障,并将其与通过 Open Folder 打开同一 repository 的情况进行比较。跟踪扩展在 workspace-mode 下的 repository 解析和激活路径;当 GitHub Actions workflows 和 runs 在两种模式下都能加载且不出现 API 连接错误时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Description
When I open the same repository via a multi-root .code-workspace, the GitHub Actions extension shows:
Unable to connect to the GitHub API, please check internet connection
If I open the repository directly with File → Open Folder, the extension works normally (workflows/runs load, authentication is fine).
This appears specific to workspace-mode repository resolution/activation, not network connectivity.
Steps to reproduce
- Create/open a multi-root workspace that includes this repo as a root:
c:\Users\<user>\Source\loom-workbench(plus other roots in workspace)
- Open VS Code using the
.code-workspacefile. - Open the GitHub Actions view.
- Observe error: "Unable to connect to the GitHub API, please check internet connection".
- Close VS Code.
- Reopen only
c:\Users\<user>\Source\loom-workbenchvia Open Folder. - GitHub Actions extension works correctly.
Expected behavior
The extension should authenticate and connect to GitHub API the same way in both:
- Open Folder mode
- .code-workspace (multi-root) mode
Actual behavior
- Open Folder: Works
- .code-workspace: Fails with API connection error
Environment
- Version: 1.125.1 (user setup)
- Commit: fcf604774b9f2674b473065736ee75077e256353
- Date: 2026-06-19T08:39:34Z
- Electron: 42.2.0
- ElectronBuildId: 14159160
- Chromium: 148.0.7778.97
- Node.js: 24.15.0
- V8: 14.8.178.14-electron.0
- OS: Windows_NT x64 10.0.26200
Additional context
- Internet connectivity is fine.
- Authentication/session is valid (confirmed by successful behavior in Open Folder mode).
- Reproducible consistently with the same repository and machine.
- 主要语言
- TypeScript
- 星标
- 661
- 派生
- 214
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
github/vscode-github-actions 的其他 Issue
-
enhancement
难度 2/5 1-3 小时 新手友好度 76/100
github/vscode-github-actions#627 · 1 个 reaction ·
-
long work 未关闭
难度 4/5 3-5 天 新手友好度 25/100
github/vscode-github-actions#628 ·
-
bug
难度 3/5 1-2 天 新手友好度 55/100
github/vscode-github-actions#625 ·
-
bug
难度 3/5 1-2 天 新手友好度 64/100
github/vscode-github-actions#621 · 3 条评论 ·
-
难度 3/5 1-2 天 新手友好度 50/100
github/vscode-github-actions#619 ·
查看 github/vscode-github-actions 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
safetrustcr/dApp-SafeTrust#426 ·
-
area:workflow bug ready-for-agent
难度 2/5 1-3 小时 新手友好度 75/100
fil-donadoni/tolaria#4409 ·
-
难度 2/5 1-3 小时 新手友好度 70/100
Fission-AI/OpenSpec#1960 ·
-
Add dependabot 未关闭
难度 2/5 1-3 小时 新手友好度 70/100
-
难度 2/5 1-3 小时 新手友好度 75/100
corsairdev/corsair#1764 ·