Skip to content

Code Collapsing is in the wrong place #2556

Closed
PowerShell/PowerShellEditorServices
#1238
@adamdriscoll

Description

@adamdriscoll

VSCode version: 1.42.1 c47d83b293181d9be64f27ff093689e8e7aed054 x64

VSCode extensions:

eamodio.gitlens@10.2.1
Equinusocio.vsc-community-material-theme@1.4.1
Equinusocio.vsc-material-theme@32.5.0
equinusocio.vsc-material-theme-icons@1.1.4
johnpapa.vscode-peacock@3.6.0
ms-dotnettools.csharp@1.21.14
ms-vscode.powershell@2020.3.0
ms-vscode.powershell-preview@2020.3.0
ms-vsliveshare.vsliveshare@1.0.1742
ms-vsliveshare.vsliveshare-audio@0.1.80
ms-vsliveshare.vsliveshare-pack@0.3.4
vscode-icons-team.vscode-icons@10.0.0
wix.vscode-import-cost@2.12.0

PSES version: 2.1.0.0

PowerShell version:

Name Value


PSVersion 5.1.18362.628
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.18362.628
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

I've seen this with the stable build but I'm using the preview build at the moment.

Issue Description

I'm seeing code collapsing regions appear in invalid locations. See the below gif.


https://recordit.co/MrVG4Wqtfp

Expected Behaviour

The code collapsing should be based on blocks etc.

Actual Behaviour

The code collapsing is happening in the middle of lines. Even blank lines have code collapse handles that cause other lines to disappear.

Attached Logs

log.txt

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions