Skip to content
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

Cutting/Deleting folded code affects only one line #60176

Closed
PrzemyslawKlys opened this issue Oct 8, 2018 · 1 comment
Closed

Cutting/Deleting folded code affects only one line #60176

PrzemyslawKlys opened this issue Oct 8, 2018 · 1 comment
Assignees
Labels
editor-folding Editor code folding issues

Comments

@PrzemyslawKlys
Copy link

  • VSCode Version: 1.28
  • OS Version: Windows 10 1809

Steps to Reproduce:

  1. Have something like this defined in powershell

image

    $Configuration = [ordered] @{
        Prettify       = @{
            CompanyName        = 'Evotec'
            UseBuiltinTemplate = $true
            CustomTemplatePath = ''
            Language           = 'en-US'
        }
        Options        = @{
            OpenDocument = $true
            OpenExcel    = $true
        }
        DisplayConsole = @{
            ShowTime   = $false
            LogFile    = "$ENV:TEMP\PSWinDocumentationADTesting.log"
            TimeFormat = 'yyyy-MM-dd HH:mm:ss'
        }
        Debug          = @{
            Verbose = $false
        }
    }
  1. Fold it
  2. Select it just like this (one full line)

image

  1. Moving/Deleting only affects one line not whole folded code block

Workaround is to select it with 2 lines like below

image

Does this issue occur when all extensions are disabled?: Yes/No

Reference: PowerShell/vscode-powershell#1563

@vscodebot vscodebot bot added the editor-folding Editor code folding issues label Oct 8, 2018
@aeschli
Copy link
Contributor

aeschli commented Oct 12, 2018

duplicate of #59657

@aeschli aeschli closed this as completed Oct 12, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
editor-folding Editor code folding issues
Projects
None yet
Development

No branches or pull requests

2 participants