Skip to content

Code Collapsing is in the wrong place #2556

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
adamdriscoll opened this issue Mar 13, 2020 · 3 comments · Fixed by PowerShell/PowerShellEditorServices#1238
Closed

Code Collapsing is in the wrong place #2556

adamdriscoll opened this issue Mar 13, 2020 · 3 comments · Fixed by PowerShell/PowerShellEditorServices#1238
Labels

Comments

@adamdriscoll
Copy link
Contributor

adamdriscoll commented Mar 13, 2020

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

@ghost ghost added the Needs: Triage Maintainer attention needed! label Mar 13, 2020
@TylerLeonhardt
Copy link
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)

@adamdriscoll
Copy link
Contributor Author

I'll work on getting those logs tomorrow.

This is from the UD repo: https://github.com/ironmansoftware/universal-dashboard

It's this script: https://github.com/ironmansoftware/universal-dashboard/blob/master/src/poshud/dashboard.ps1

@TylerLeonhardt
Copy link
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants