Clean up retained Data/List Viewer state for obsolete Interactive outputs
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 38/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- r, typescript
- Bereich
- devtools
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 1.2k
- Forks
- 151
- Ø Merge
- 1 T. 8 Std.
- Gemergte PRs (30 T.)
- 76
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus REditorSupport/vscode-R
-
[Bug]: indentation clash (formatter vs lintr)Evtl. vergeben @renkun-ken hat das vor 1 Tag übernommen. Offenbug
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 92/100
REditorSupport/vscode-R#1883 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
REditorSupport/vscode-R#1846 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
(feat) Additional Arrow supportEvtl. vergeben @Fred-Wu hat das vor 5 Tagen übernommen. Offenenhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
REditorSupport/vscode-R#1785 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 12/100
REditorSupport/vscode-R#1877 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Explore a standalone, dependency-free R package for the Data Viewer backendEvtl. vergeben @eitsupi hat das vor 7 Tagen übernommen. Offen
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
REditorSupport/vscode-R#1860 · 11 Kommentare · 1 Reaktion · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in REditorSupport/vscode-R
Ähnliche Issues
-
area:editor bug issue-form:bug P0 platform:windows review: low
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 64/100
1lck/Lithe-IDEA#1388 ·
Maintainer antworten meist innerhalb von 1 Tag
-
fix(api): isToolAuditEnabled swallows database read errors on auditToolOperations without loggingOffenarea: backend bug priority: low
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
snapotter-hq/SnapOtter#3238 ·
Maintainer antworten meist innerhalb von 1 Tag
-
rig up --plan times out after 5 s and reports an UNKNOWN outcome while the daemon completes the planOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 1 Tag
-
filesystem: search_files does not expand non-wildcard excludePatterns like directory_tree doesOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
modelcontextprotocol/servers#5216 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Maintainer antworten meist innerhalb von 1 Tag