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

githubIssues.queries is applied to auto-detected linked worktrees

未关闭
#9,141 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
1-2 天
新手友好度
55/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
github, typescript, vscode

调研方向

Start in the issue state manager where githubIssues.queries is read, and check the extension manifest for its resource scope. Trace how the query list is reused across detected repositories and how an empty list falls back to the default. Done means each worktree gets its own configured queries, including an explicit empty list.

由索引模型根据 Issue 内容生成。

描述

  • Extension version: 0.172.0
  • VSCode Version: Not recorded
  • OS: macOS (version not recorded)
  • Repository Clone Configuration (single repository/fork of an upstream repository): One main worktree with linked worktrees for the same repository
  • GitHub Product (GitHub.com/GitHub Enterprise version x.x.x): Not recorded

Steps to Reproduce:

  1. Open the main worktree in VS Code.
  2. Keep "git.detectWorktrees": true so linked worktrees are detected and shown in Source Control.
  3. Configure a custom githubIssues.queries value for the main worktree.
  4. Open the GitHub Issues view and refresh it.

Actual:

The configured query categories are also applied to the auto-detected linked worktrees. I cannot configure the queries for the main worktree without also applying them to those linked worktrees.

Setting githubIssues.queries to an empty array does not disable the queries; the extension replaces the empty array with its default query.

Expected:

githubIssues.queries should be resolved per repository/worktree, so the main worktree can use its configured queries while linked worktrees can use their own configuration or no query categories. An explicit empty array should remain empty.

This should work while "git.detectWorktrees": true remains enabled, since I want the linked worktrees to continue appearing in Source Control.

Additional context:

The extension manifest declares githubIssues.queries as a resource-scoped setting, but the issue state manager appears to read it without a resource and reuse the resulting query list for all detected repositories. It also replaces an empty query list with the default query.

主要语言
TypeScript
星标
2.6k
派生
807
平均合并
1 天 21 小时
30 天内合并 PR
70

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

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

microsoft/vscode-pull-request-github 的其他 Issue

查看 microsoft/vscode-pull-request-github 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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