Skip to content

Commit b6e10cb

Browse files
committed
Removed r.session.levelOfObjectDetail setting, and the legacy string-based expansion fallback
1 parent f4305b5 commit b6e10cb

4 files changed

Lines changed: 4 additions & 22 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
### Maintenance
1212

13-
* Removed the obsolete `r.session.objectLengthLimit` and `r.session.objectTimeout` settings.
14-
* Removed confirmed unused workspace viewer code.
13+
* Removed the obsolete `r.session.objectLengthLimit`, `r.session.objectTimeout`, and `r.session.levelOfObjectDetail` settings.
14+
* Removed the legacy string-based expansion fallback now that expandable objects provide explicit metadata.
1515

1616
## 3.0.7 - 2026-04-26
1717

R/session/vsc.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ load_settings <- function() {
3030
vsc.use_httpgd = plot$useHttpgd,
3131
vsc.show_object_size = workspaceViewer$showObjectSize,
3232
vsc.rstudioapi = session$emulateRStudioAPI,
33-
vsc.str.max.level = setting(session$levelOfObjectDetail, Minimal = 0, Normal = 1, Detailed = 2),
3433
vsc.globalenv = session$watchGlobalEnvironment,
3534
vsc.plot = setting(session$viewers$viewColumn$plot, Disable = FALSE),
3635
vsc.dev.args = plot$devArgs,

package.json

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1646,21 +1646,6 @@
16461646
"default": true,
16471647
"markdownDescription": "Watch the global environment to provide hover, autocompletions, and workspace viewer information. Changes the option `vsc.globalenv` in R. Requires `#r.sessionWatcher#` to be set to `true`."
16481648
},
1649-
"r.session.levelOfObjectDetail": {
1650-
"type": "string",
1651-
"markdownDescription": "How much of the object to show on hover, autocompletion, and in the workspace viewer? Changes the option `vsc.str.max.level` in R. Requires `#r.sessionWatcher#` to be set to `true`.",
1652-
"default": "Minimal",
1653-
"enum": [
1654-
"Minimal",
1655-
"Normal",
1656-
"Detailed"
1657-
],
1658-
"enumDescriptions": [
1659-
"Display literal values and object types only.",
1660-
"Display the top level of list content, data frame column values, and example values.",
1661-
"Display the top two levels of list content, data frame column values, and example values. This option may cause notable delay after each user input in the terminal."
1662-
]
1663-
},
16641649
"r.session.emulateRStudioAPI": {
16651650
"type": "boolean",
16661651
"default": true,

src/workspaceViewer.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ export class GlobalEnvItem extends TreeItem {
356356
) {
357357
super(
358358
label,
359-
GlobalEnvItem.setCollapsibleState(type, str, hasChildren)
359+
GlobalEnvItem.setCollapsibleState(type, hasChildren)
360360
);
361361
this.treeLevel = treeLevel ?? TreeLevel.Scalar;
362362
this.priority = dim ? 1 : 0;
@@ -430,11 +430,9 @@ export class GlobalEnvItem extends TreeItem {
430430
in the futere for more tree levels.*/
431431
private static setCollapsibleState(
432432
type: string,
433-
str: string,
434433
hasChildren?: boolean
435434
): vscode.TreeItemCollapsibleState {
436-
const expandable = hasChildren ?? str.includes('\n');
437-
if (collapsibleTypes.includes(type) && expandable) {
435+
if (collapsibleTypes.includes(type) && hasChildren) {
438436
return TreeItemCollapsibleState.Collapsed;
439437
} else {
440438
return TreeItemCollapsibleState.None;

0 commit comments

Comments
 (0)