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

Moving lines of code down inreases their indentation for no reason #88180

Closed
adamreisnz opened this issue Jan 7, 2020 · 5 comments
Closed

Moving lines of code down inreases their indentation for no reason #88180

adamreisnz opened this issue Jan 7, 2020 · 5 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug *duplicate Issue identified as a duplicate of another issue(s) editor-autoindent Editor auto indentation issues javascript JavaScript support issues typescript Typescript support issues
Milestone

Comments

@adamreisnz
Copy link

ezgif com-optimize

Issue Type: Bug

See screen recording. Select lines of code, move them up and all works fine. Move them down, and every movement down increases their indendation.

The setting Format On Type is disabled.

Reproduces with all extensions disabled.

VS Code version: Code - Insiders 1.42.0-insider (7c0095e, 2019-12-20T07:55:38.353Z)
OS version: Darwin x64 18.7.0

System Info
Item Value
CPUs Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz (8 x 3400)
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: unavailable_off
protected_video_decode: unavailable_off
rasterization: unavailable_off
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) 4, 3, 3
Memory (System) 8.00GB (0.07GB free)
Process Argv
Screen Reader no
VM 0%
Extensions (16)
Extension Author (truncated) Version
project-manager ale 10.9.1
vscode-eslint dba 2.0.11
gitlens eam 10.2.0
EditorConfig Edi 0.14.4
file-icons fil 1.0.20
gc-excelviewer Gra 2.1.32
json2csv kha 0.0.1
l13-diff L13 0.21.0
git-tree-compare let 1.7.1
vetur oct 0.22.6
multi-command ryu 1.3.0
vscode-fileutils sle 3.0.0
control-snippets svi 1.7.1
reopenclosedtab uyi 1.1.0
highlight-matching-tag vin 0.9.6
vscode-todo-highlight way 1.0.4

(1 theme extensions excluded)

@mjbvz
Copy link
Collaborator

mjbvz commented Jan 7, 2020

What language is this? JS?

@mjbvz mjbvz added the info-needed Issue requires more information from poster label Jan 7, 2020
@mjbvz
Copy link
Collaborator

mjbvz commented Jan 7, 2020

Also please share small code sample (as text!)

@adamreisnz
Copy link
Author

Yes javascript.

const foo = [
{
  foo: 'Foo',
  bar: [
    'bar',
    'baz'
  ],
];

@mjbvz mjbvz added editor-autoindent Editor auto indentation issues javascript JavaScript support issues typescript Typescript support issues and removed info-needed Issue requires more information from poster labels Jan 9, 2020
@mjbvz mjbvz added this to the Backlog milestone Jan 9, 2020
@rebornix rebornix added the bug Issue identified by VS Code Team member as probable bug label Oct 8, 2020
@rebornix rebornix added the *duplicate Issue identified as a duplicate of another issue(s) label Nov 3, 2020
@adamreisnz
Copy link
Author

What is the duplicate issue please? So I can follow it there..

@rebornix rebornix closed this as completed Nov 3, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Dec 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug *duplicate Issue identified as a duplicate of another issue(s) editor-autoindent Editor auto indentation issues javascript JavaScript support issues typescript Typescript support issues
Projects
None yet
Development

No branches or pull requests

4 participants
@adamreisnz @rebornix @mjbvz and others