Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#604 0 bình luận 2 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
github-actions, typescript
Lĩnh vực
devtools

Hướng nghiên cứu

Tái hiện lỗi bằng .code-workspace multi-root đã được báo cáo và so sánh với việc mở cùng repository thông qua Open Folder. Theo dõi đường dẫn phân giải repository và kích hoạt extension trong workspace-mode; hoàn thành khi GitHub Actions workflows và runs được tải ở cả hai chế độ mà không có lỗi kết nối API.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
TypeScript
Star
661
Fork
214
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của github/vscode-github-actions

Tất cả issue của github/vscode-github-actions

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.