You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(GH-1514) Show the last line of folding regions as per default VSCode
Previously the code folding provider would hide the last line of the region,
however the default VS Code code folding behaviour is to instead hide from
the beginning to end minus one, lines. This commit;
* Adds a configuration parameter to show/hide the last line in a region,
defaulting to Show the last line
* Modifies conversion method for the internal region class to FoldingRange
object to show/hide the last line based on the extension settings
* Modifies the tests for the default value and adds tests for the show and hide
scenarios
This code is based on a solution created by;
ens-rpitcher <[email protected]>
Copy file name to clipboardExpand all lines: package.json
+5
Original file line number
Diff line number
Diff line change
@@ -478,6 +478,11 @@
478
478
"default": true,
479
479
"description": "Enables syntax based code folding. When disabled, the default indentation based code folding is used."
480
480
},
481
+
"powershell.codeFolding.showLastLine": {
482
+
"type": "boolean",
483
+
"default": true,
484
+
"description": "Shows the last line of a folded section similar to the default VSCode folding style. When disabled, the entire folded region is hidden."
0 commit comments