Clean up retained Data/List Viewer state for obsolete Interactive outputs
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 38/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- r, typescript
- 領域
- devtools
調査の方向性
Start by reading the existing state_generation / dataview_dispose mechanism from #1741 and the dataview_set_state usage described in #1835. Trace how Interactive generations, retained history, and reconnects determine whether viewer state is still usable. Done means obsolete table and list viewer state is released when it can no longer be used, without breaking live or reconnectable outputs.
索引モデルが issue の本文から書いたものです。
説明
Background
This was identified during a ChatGPT-assisted review of #1835.
Interactive rich outputs retain R-side viewer state in .sess_env$dataviews so that notebook cells can continue paging or opening their full Data/List Viewer without serializing the complete object.
However, these states do not appear to be released when the corresponding Interactive output is no longer live.
For example, #1835 stores each plain list result with:
dataview_set_state(view_id, root)
and Interactive table outputs similarly retain Data Viewer state. Once an Interactive generation becomes archived, the extension correctly disables live controls, but the corresponding R-side state may remain referenced until the runtime itself is stopped.
This means old Interactive outputs can keep potentially large R objects alive even though they can no longer be browsed live.
Possible direction
Consider managing these states as Interactive-owned viewer resources, and dispose them when they can no longer be used, for example when:
- an Interactive generation is replaced or restarted;
- retained history is evicted;
- an Interactive session/output is otherwise permanently discarded.
This should probably cover both existing table outputs and the list outputs introduced in #1835 rather than adding list-specific cleanup.
The existing state_generation / dataview_dispose mechanism from #1741 may provide the appropriate foundation, but Interactive output retention and reconnect semantics need to be taken into account.
- 主要言語
- TypeScript
- スター
- 1.2k
- フォーク
- 147
- 平均マージ
- 1日 11時間
- マージ済み PR(30日)
- 62
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
REditorSupport/vscode-R のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
REditorSupport/vscode-R#1846 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
(feat) Additional Arrow support対応中かも @Fred-Wu が 8 日前に担当しました。 オープンenhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
REditorSupport/vscode-R#1785 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
REditorSupport/vscode-R#1850 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
REditorSupport/vscode-R#1841 ·
メンテナーはふだん 1 日以内に返信
-
(Feat): update status bar PID when switching between Data and List Viewers from different sessions対応中かも @Fred-Wu が今日担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
REditorSupport/vscode-R#1827 ·
メンテナーはふだん 1 日以内に返信
REditorSupport/vscode-R の issue をすべて見る
似ている issue
-
[bug] diagnostics.dumpBody:Buffer 形态请求(透传 lane)跳过 dumps/ 落盘,仅留 raw/-unknown-対応中かも @ranxianglei が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
ranxianglei/billion-context#2421 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
platformatic/mcp#216 ·
メンテナーはふだん 1 日以内に返信
-
pending triage
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
nuxt/test-utils#1842 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
MoonshotAI/kimi-code#4146 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
farbenmeer/tapi#531 ·