R: Workspace symbol search shows duplicate results that open read-only editors
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 82/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
- 領域
- devtools
調査の方向性
extensions/positron-r/src/provider.tsを読み、R_DOCUMENT_SELECTORS内の2つのパターンセレクターを調べます。変更されたRファイルのGit変更を開き、Quick Openで#を含むシンボルを検索して重複を再現します。両方のセレクターにfileスキームを追加し、検索結果が1件になり、git diffのコピーにこれらのR言語機能が適用されなくなることを確認します。
索引モデルが issue の本文から書いたものです。
説明
When an R file has uncommitted git changes and a diff of it is open, searching for a symbol (#name in Quick Open) lists the symbol twice with the same label, e.g. save_pdf R/live.R. One result opens the real file. The other opens a read-only editor showing the HEAD version of the file. Each extra git copy that is open (staged version, other diff views) adds another duplicate.
Steps to reproduce
- Open a folder that is a git repo and contains an R file with a function, e.g.
R/live.Rwithsave_pdf <- function(x) x. - Edit and save
R/live.Rso it shows as modified. - Run Git: Open Changes on the file.
- Open Quick Open and type
#save_pdf.
Expected: one result. Actual: two save_pdf R/live.R results; picking the second opens a locked, read-only live.R with the old contents.
Cause
R_DOCUMENT_SELECTORS in extensions/positron-r/src/provider.ts includes { language: 'r', pattern: '**/*.{r,R}' } without a scheme, so it matches R documents under any scheme. The git: documents that back diff editors are synced to ark, which indexes them as separate files and returns them from workspace/symbol with their git: URIs. VS Code only merges symbols with identical URIs, and the label service shows the git: URI relative to the workspace folder, so both rows look the same.
Ark itself is not doing anything wrong: it only indexes the documents it is sent.
Suggested fix
Add scheme: 'file' to the two pattern selectors in R_DOCUMENT_SELECTORS. This also stops other LSP features (diagnostics, hover, etc.) from running on read-only git copies.
Positron 2026.12.0, ark 0.1.252+519.646f572, macOS.
Originally discovered by @Hadley.
- 主要言語
- TypeScript
- スター
- 4.4k
- フォーク
- 207
- 平均マージ
- 1日 16時間
- マージ済み PR(30日)
- 308
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
posit-dev/positron のほかの issue
-
area: assistant area: ui
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
accessibility area: plots area: ui
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
area: plots area: ui bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
Memory meter counts page cache as used memory under a cgroup limit対応中かも @jmcphers が 10 日前に担当しました。 オープンarea: workbench bug memory-use support
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
posit-dev/positron#17414 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
area: remote host bug support
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
posit-dev/positron#17249 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
posit-dev/positron の issue をすべて見る
似ている issue
-
triage
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
novuhq/novu#13613 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
enhancement from-app needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
nightly-labs/openbot#23943 ·
メンテナーはふだん 1 日以内に返信
-
comp/desktop desktop/chat P3 type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
NousResearch/hermes-agent#164451 ·
メンテナーはふだん 1 日以内に返信
-
shortkeys-2188:ready
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
crittermike/shortkeys#1121 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
Doist/todoist-cli#742 ·