Skip to content

Code Collapsing is in the wrong place #2556

Closed
PowerShell/PowerShellEditorServices
#1238

Description

VSCode version: 1.42.1 c47d83b293181d9be64f27ff093689e8e7aed054 x64

VSCode extensions:

[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]

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

Activity

  1. ghost added
    Needs: Triage
    on Mar 13, 2020
  2. TylerLeonhardt commented on Mar 13, 2020

    @TylerLeonhardt
    Member

    For this issue I think it would be really helpful to provide the Language Server payload logs and also the script/repo you have open so I can give it a try myself (if possible)

  3. TylerLeonhardt commented on Mar 16, 2020

    @TylerLeonhardt
    Member

    I cloned it and opened that file and didn't see any unusual folds so I'll wait and see what your logs say.

  4. added
    Issue-Bug
    and removed
    Needs: Triage
    on Mar 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-FoldingIssue-Bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions