File tree Expand file tree Collapse file tree 2 files changed +28
-28
lines changed Expand file tree Collapse file tree 2 files changed +28
-28
lines changed Original file line number Diff line number Diff line change 1
- function short-func {};
1
+ function short-func-not-fold {};
2
2
<#
3
3
. SYNOPSIS
4
- Displays a list of WMI Classes based upon a search criteria
4
+ This whole comment block should fold, not just the SYNOPSIS
5
5
. EXAMPLE
6
- Get-WmiClasses -class disk -ns rootcimv2"
6
+ This whole comment block should fold, not just the EXAMPLE
7
7
#>
8
- function New-VSCodeCannotFold {
8
+ function New-VSCodeShouldFold {
9
9
<#
10
10
. SYNOPSIS
11
- Displays a list of WMI Classes based upon a search criteria
11
+ This whole comment block should fold, not just the SYNOPSIS
12
12
. EXAMPLE
13
- Get-WmiClasses -class disk -ns rootcimv2"
13
+ This whole comment block should fold, not just the EXAMPLE
14
14
#>
15
15
$I = @'
16
- cannot fold
16
+ herestrings should fold
17
17
18
18
'@
19
19
20
20
# this won't be folded
21
21
22
- # This should be foldable
23
- # This should be foldable
24
- # This should be foldable
22
+ # This block of comments should be foldable as a single block
23
+ # This block of comments should be foldable as a single block
24
+ # This block of comments should be foldable as a single block
25
25
26
26
# region This fools the indentation folding.
27
27
Write-Host " Hello"
28
- # region
28
+ # region Nested regions should be foldable
29
29
Write-Host " Hello"
30
30
# comment1
31
31
Write-Host " Hello"
@@ -36,12 +36,12 @@ cannot fold
36
36
# endregion
37
37
38
38
$c = {
39
- Write-Host " Hello "
39
+ Write-Host " Script blocks should be foldable "
40
40
}
41
41
42
42
# Array fools indentation folding
43
43
$d = @ (
44
- ' element1 ' ,
45
- ' elemet2 '
44
+ ' should fold1 ' ,
45
+ ' should fold2 '
46
46
)
47
47
}
Original file line number Diff line number Diff line change 1
- function short-func {};
1
+ function short-func-not-fold {};
2
2
<#
3
3
. SYNOPSIS
4
- Displays a list of WMI Classes based upon a search criteria
4
+ This whole comment block should fold, not just the SYNOPSIS
5
5
. EXAMPLE
6
- Get-WmiClasses -class disk -ns rootcimv2"
6
+ This whole comment block should fold, not just the EXAMPLE
7
7
#>
8
- function New-VSCodeCannotFold {
8
+ function New-VSCodeShouldFold {
9
9
<#
10
10
. SYNOPSIS
11
- Displays a list of WMI Classes based upon a search criteria
11
+ This whole comment block should fold, not just the SYNOPSIS
12
12
. EXAMPLE
13
- Get-WmiClasses -class disk -ns rootcimv2"
13
+ This whole comment block should fold, not just the EXAMPLE
14
14
#>
15
15
$I = @'
16
- cannot fold
16
+ herestrings should fold
17
17
18
18
'@
19
19
20
20
# this won't be folded
21
21
22
- # This should be foldable
23
- # This should be foldable
24
- # This should be foldable
22
+ # This block of comments should be foldable as a single block
23
+ # This block of comments should be foldable as a single block
24
+ # This block of comments should be foldable as a single block
25
25
26
26
# region This fools the indentation folding.
27
27
Write-Host " Hello"
28
- # region
28
+ # region Nested regions should be foldable
29
29
Write-Host " Hello"
30
30
# comment1
31
31
Write-Host " Hello"
@@ -36,12 +36,12 @@ cannot fold
36
36
# endregion
37
37
38
38
$c = {
39
- Write-Host " Hello "
39
+ Write-Host " Script blocks should be foldable "
40
40
}
41
41
42
42
# Array fools indentation folding
43
43
$d = @ (
44
- ' element1 ' ,
45
- ' elemet2 '
44
+ ' should fold1 ' ,
45
+ ' should fold2 '
46
46
)
47
47
}
You can’t perform that action at this time.
0 commit comments