diff --git a/package.json b/package.json index 0c33c660..c0b8ab29 100644 --- a/package.json +++ b/package.json @@ -234,6 +234,11 @@ "none" ], "default": "none" + }, + "rdbg.hideClassItem": { + "type": "boolean", + "default": false, + "description": "Hide the #class item for each object in VARIABLES view" } } }, diff --git a/src/extension.ts b/src/extension.ts index 959bc14c..5067079a 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -205,6 +205,11 @@ class RdbgInitialConfigurationProvider implements vscode.DebugConfigurationProvi config.rdbgExtensions = extensions; config.rdbgInitialScripts = []; // for future extension + const hideClassItem = vscode.workspace.getConfiguration("rdbg").get("hideClassItem"); + if (hideClassItem) { + config.hideClassItem = true; + } + if (config.script || config.request === "attach") { return config; }