Skip to content

Visually collapsing a function doesn't always work correctly #1662

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
FlorisDevreese opened this issue Dec 18, 2018 · 2 comments
Closed

Visually collapsing a function doesn't always work correctly #1662

FlorisDevreese opened this issue Dec 18, 2018 · 2 comments
Labels

Comments

@FlorisDevreese
Copy link

Issue Type: Bug

The collapsing of a function with a hash inside it doesn't work correctly.

Test program:

function foo() {
    $a = @{}
    return $a
}
Write-Host "end"

Result after visually collapsing the foo function:

function foo() {
    $a = @{}...
Write-Host "end"

Expected result:

function foo() {...
}
Write-Host "end"

Extension version: 1.10.1
VS Code version: Code 1.30.0 (c6e592b2b5770e40a98cb9c2715a8ef89aec3d74, 2018-12-11T22:29:11.253Z)
OS version: Windows_NT x64 10.0.16299

System Info
Item Value
CPUs Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz (8 x 1992)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
@DanrwAU
Copy link

DanrwAU commented Dec 18, 2018

Can confirm having the same issue 👍
#1661

@SydneyhSmith
Copy link
Collaborator

@fldvrees Thanks for reporting this issue, its always helpful to have more examples/repros. I am going to close it as a duplicate of #1631 but please track the issue there. Thanks!

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

No branches or pull requests

3 participants