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

Copying/Moving folded code does not work as expected #90427

Closed
mika76 opened this issue Feb 11, 2020 · 4 comments
Closed

Copying/Moving folded code does not work as expected #90427

mika76 opened this issue Feb 11, 2020 · 4 comments
Assignees

Comments

@mika76
Copy link

mika76 commented Feb 11, 2020

Issue Type: Bug

When moving or copying folded code in Visual Studio (the IDE) it moves and copies as a block, but in VSCode it seems to cut it off in certain cases.

Example, if I fold a method, select the line by clicking on the line number, the click alt-up to move the whole method up, it first unfolds and then only moves the first line of the method.

Generally I would expect the folded to code act as if the whole block was selected and move/copy appropriately. Seems to work well in VS IDE.

VS Code version: Code 1.42.0 (ae08d54, 2020-02-06T10:51:33.119Z)
OS version: Darwin x64 19.3.0

System Info
Item Value
CPUs Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz (16 x 2300)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off
surface_control: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) 2, 2, 2
Memory (System) 16.00GB (0.09GB free)
Process Argv
Screen Reader no
VM 14%
Extensions (18)
Extension Author (truncated) Version
Bookmarks ale 10.7.0
npm-intellisense chr 1.3.0
bracket-pair-colorizer Coe 1.0.61
vscode-eslint dba 2.0.15
gitlens eam 10.2.0
prettier-vscode esb 3.20.0
vscode-firefox-debug fir 2.6.1
rest-client hum 0.23.1
git-graph mhu 1.21.0
vscode-docker ms- 0.10.0
mssql ms- 1.8.0
csharp ms- 1.21.11
vetur oct 0.23.0
vue-vscode-extensionpack sdr 0.2.0
vue-vscode-snippets sdr 1.8.0
vscode-status-bar-format-toggle tom 2.0.0
vscode-jumpy wma 0.3.1
JavaScriptSnippets xab 1.7.2

(4 theme extensions excluded)

@vscodebot
Copy link

vscodebot bot commented Feb 11, 2020

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@usernamehw
Copy link
Contributor

Possibly related to #63972

@vscodebot vscodebot bot removed the new release label Feb 11, 2020
@mika76
Copy link
Author

mika76 commented Feb 11, 2020

@usernamehw yes that definitely seems related.

I've taken a couple of gifs to show what's happening and what is expected...

Currently.. (The first move only moves the first line in the fold - I then ctrl-Z, select the folded text including the blank lines above and below, and then it moves ok)
output2

This is how VS 2019 handles it...
output

@aeschli
Copy link
Contributor

aeschli commented Feb 17, 2020

Duplicate of #72422

@aeschli aeschli marked this as a duplicate of #72422 Feb 17, 2020
@aeschli aeschli closed this as completed Feb 17, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Apr 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants