Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

GitHub Actions extension fails with "Unable to connect to the GitHub API" in .code-workspace (works with Open Folder)

未关闭
#604 0 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 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 内容生成。

描述

bug

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

  1. Create/open a multi-root workspace that includes this repo as a root:
    • c:\Users\<user>\Source\loom-workbench (plus other roots in workspace)
  2. Open VS Code using the .code-workspace file.
  3. Open the GitHub Actions view.
  4. Observe error: "Unable to connect to the GitHub API, please check internet connection".
  5. Close VS Code.
  6. Reopen only c:\Users\<user>\Source\loom-workbench via Open Folder.
  7. 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

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

github/vscode-github-actions 的其他 Issue

查看 github/vscode-github-actions 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。