Skip to content

Commit

Permalink
Add the ability to hide the #class item for each object
Browse files Browse the repository at this point in the history
Closes ruby#37

We can hide the #class item for each object by setting true in hideClassItem
  • Loading branch information
ono-max committed Jun 3, 2023
1 parent 4d9acd9 commit 3aaae1e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,11 @@
"none"
],
"default": "none"
},
"rdbg.hideClassItem": {
"type": "boolean",
"default": false,
"description": "Hide the #class item for each object in VARIABLES view"
}
}
},
Expand Down
5 changes: 5 additions & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,11 @@ class RdbgInitialConfigurationProvider implements vscode.DebugConfigurationProvi
config.rdbgExtensions = extensions;
config.rdbgInitialScripts = []; // for future extension

const hideClassItem = vscode.workspace.getConfiguration("rdbg").get<boolean>("hideClassItem");
if (hideClassItem) {
config.hideClassItem = true;
}

if (config.script || config.request === "attach") {
return config;
}
Expand Down

0 comments on commit 3aaae1e

Please sign in to comment.