From f351fac51f3074b7f314eb1dfeeec0a991871425 Mon Sep 17 00:00:00 2001 From: arsentieva Date: Fri, 1 Oct 2021 11:46:44 -0700 Subject: [PATCH 1/4] Add new debug setting named 'VariablePresentation'. --- package.json | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/package.json b/package.json index 1493dec12b16..c0719e2df504 100644 --- a/package.json +++ b/package.json @@ -578,6 +578,64 @@ "scope": "resource", "type": "string" }, + "python.debugger.VariablePresentation": { + "default": "{}", + "description": "Allow the user to specified the preferred presentation of variables.", + "scope": "resource", + "type": "object", + "properties": { + "all":{ + "type": "string", + "default": "none", + "description" : "Set preferred presentation of variables for all instances.", + "enum": [ + "inline", + "group", + "hide" + ] + }, + "class":{ + "type": "string", + "default": "none", + "description" : "Set Class presentation of variables.", + "enum": [ + "inline", + "group", + "hide" + ] + }, + "function":{ + "type": "string", + "default": "none", + "description" : "Set Function preferred presentation of variables.", + "enum": [ + "inline", + "group", + "hide" + ] + }, + "protected":{ + "type": "string", + "default": "none", + "description" : "Set Protected preferred presentation of variables.", + "enum": [ + "inline", + "group", + "hide" + ] + }, + "special":{ + "type": "string", + "default": "none", + "description" : "Set Special preferred presentation of variables.", + "enum": [ + "inline", + "group", + "hide" + ] + } + } + }, "python.defaultInterpreterPath": { "default": "python", "description": "Path to Python, you can use a custom version of Python by modifying this setting to include the full path. This default setting is used as a fallback if no interpreter is selected for the workspace. The extension will also not set nor change the value of this setting, it will only read from it.", From 64eaeadf2a3e8e3fd55f59f37ff01e3e5ce913e0 Mon Sep 17 00:00:00 2001 From: arsentieva Date: Fri, 1 Oct 2021 11:50:09 -0700 Subject: [PATCH 2/4] Fix typo --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c0719e2df504..a9347ba14ed7 100644 --- a/package.json +++ b/package.json @@ -580,7 +580,7 @@ }, "python.debugger.VariablePresentation": { "default": "{}", - "description": "Allow the user to specified the preferred presentation of variables.", + "description": "Allow the user to specify the preferred presentation of variables.", "scope": "resource", "type": "object", "properties": { From 8083fb833b4007751d69d6d21d40e52303a764e4 Mon Sep 17 00:00:00 2001 From: arsentieva Date: Fri, 1 Oct 2021 11:52:54 -0700 Subject: [PATCH 3/4] Add default option for each of the paramters. --- package.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index a9347ba14ed7..a9ed93c19440 100644 --- a/package.json +++ b/package.json @@ -586,7 +586,7 @@ "properties": { "all":{ "type": "string", - "default": "none", + "default": "group", "description" : "Set preferred presentation of variables for all instances.", "enum": [ "inline", @@ -596,7 +596,7 @@ }, "class":{ "type": "string", - "default": "none", + "default": "group", "description" : "Set Class presentation of variables.", "enum": [ "inline", @@ -606,7 +606,7 @@ }, "function":{ "type": "string", - "default": "none", + "default": "group", "description" : "Set Function preferred presentation of variables.", "enum": [ "inline", @@ -616,7 +616,7 @@ }, "protected":{ "type": "string", - "default": "none", + "default": "group", "description" : "Set Protected preferred presentation of variables.", "enum": [ "inline", @@ -626,7 +626,7 @@ }, "special":{ "type": "string", - "default": "none", + "default": "group", "description" : "Set Special preferred presentation of variables.", "enum": [ "inline", From 220877314ca733563484fad78d35a9c414e3b09a Mon Sep 17 00:00:00 2001 From: arsentieva Date: Fri, 1 Oct 2021 13:09:56 -0700 Subject: [PATCH 4/4] Add news file --- news/2 Fixes/12373.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 news/2 Fixes/12373.md diff --git a/news/2 Fixes/12373.md b/news/2 Fixes/12373.md new file mode 100644 index 000000000000..2660463b8ef2 --- /dev/null +++ b/news/2 Fixes/12373.md @@ -0,0 +1 @@ +Added debugging setting called `VariablePresentation` \ No newline at end of file