Skip to content

Commit 50d60e1

Browse files
Fred-Wurandy3k
authored andcommitted
Remove obsolete workspace inspection settings and legacy expansion fallback
1 parent 969c2cf commit 50d60e1

2 files changed

Lines changed: 2 additions & 29 deletions

File tree

package.json

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1608,31 +1608,6 @@
16081608
"default": true,
16091609
"markdownDescription": "Watch the global environment to provide hover, autocompletions, and workspace viewer information. Requires `#r.sessionWatcher#` to be set to `true`."
16101610
},
1611-
"r.session.objectLengthLimit": {
1612-
"type": "integer",
1613-
"default": 2000,
1614-
"markdownDescription": "The upper limit of object length to show object details in workspace viewer and provide session symbol completion. Decrease this value if you experience significant delay after executing R commands caused by large global objects with many elements. Requires `#r.sessionWatcher#` to be set to `true`."
1615-
},
1616-
"r.session.objectTimeout": {
1617-
"type": "integer",
1618-
"default": 50,
1619-
"markdownDescription": "The maximum number of milliseconds to get information of a single object in the global environment. Decrease this value if you experience significant delay after executing R commands caused by large global objects with many elements. Requires `#r.sessionWatcher#` to be set to `true`."
1620-
},
1621-
"r.session.levelOfObjectDetail": {
1622-
"type": "string",
1623-
"markdownDescription": "How much of the object to show on hover, autocompletion, and in the workspace viewer? Requires `#r.sessionWatcher#` to be set to `true`.",
1624-
"default": "Minimal",
1625-
"enum": [
1626-
"Minimal",
1627-
"Normal",
1628-
"Detailed"
1629-
],
1630-
"enumDescriptions": [
1631-
"Display literal values and object types only.",
1632-
"Display the top level of list content, data frame column values, and example values.",
1633-
"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."
1634-
]
1635-
},
16361611
"r.session.emulateRStudioAPI": {
16371612
"type": "boolean",
16381613
"default": true,

src/workspaceViewer.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ export class GlobalEnvItem extends TreeItem {
359359
) {
360360
super(
361361
label,
362-
GlobalEnvItem.setCollapsibleState(type, str, hasChildren)
362+
GlobalEnvItem.setCollapsibleState(type, hasChildren)
363363
);
364364
this.treeLevel = treeLevel ?? TreeLevel.Scalar;
365365
this.priority = dim ? 1 : 0;
@@ -433,11 +433,9 @@ export class GlobalEnvItem extends TreeItem {
433433
in the futere for more tree levels.*/
434434
private static setCollapsibleState(
435435
type: string,
436-
str: string,
437436
hasChildren?: boolean
438437
): vscode.TreeItemCollapsibleState {
439-
const expandable = hasChildren ?? str.includes('\n');
440-
if (collapsibleTypes.includes(type) && expandable) {
438+
if (collapsibleTypes.includes(type) && hasChildren) {
441439
return TreeItemCollapsibleState.Collapsed;
442440
} else {
443441
return TreeItemCollapsibleState.None;

0 commit comments

Comments
 (0)