Repository: vscode
Issue: Moving lines of code up and down breaks indentation
Labels: typescript,javascript,editor-autoindent,under-discussion

Issue Type: <b>Bug</b>

See screen recording:
![Kapture 2020-01-15 at 11 01 14](https://user-images.githubusercontent.com/490562/72386529-694caf00-3786-11ea-9d86-a998a7b3ff38.gif)

Language: javascript
Sample code:

```js
module.exports = async function() {

  //Get club
  const club = await mongoose
    .model('Club')
    .findOne({club})
    .select('modules');

  //Remove access log module and add check in log module
  const logModule = modules.find(module => module.id === 'logs');
};
```

Expected for the indentation to remain the same, instead it indents it by an extra 2 spaces to be in line with the lines on top, which is incorrect.

These kind of chained constructs are very common, and indentation for subsequent code should reset to the starting line, not continue indented.

Issue Type: <b>Bug</b>

See screenshot

VS Code version: Code - Insiders 1.42.0-insider (7e64866a703c83dcdd3b84a8b48dd1673895fb7d, 2020-01-09T06:43:40.314Z)
OS version: Darwin x64 18.7.0

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz (8 x 3400)|
|GPU Status|2d_canvas: enabled<br>flash_3d: enabled<br>flash_stage3d: enabled<br>flash_stage3d_baseline: enabled<br>gpu_compositing: enabled<br>metal: disabled_off<br>multiple_raster_threads: enabled_on<br>oop_rasterization: unavailable_off<br>protected_video_decode: unavailable_off<br>rasterization: unavailable_off<br>skia_renderer: disabled_off<br>surface_control: disabled_off<br>surface_synchronization: enabled_on<br>video_decode: enabled<br>viz_display_compositor: enabled_on<br>viz_hit_test_surface_layer: disabled_off<br>webgl: enabled<br>webgl2: enabled|
|Load (avg)|2, 2, 3|
|Memory (System)|8.00GB (0.31GB free)|
|Process Argv||
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (17)</summary>

Extension|Author (truncated)|Version
---|---|---
project-manager|ale|10.9.1
vscode-eslint|dba|2.0.14
gitlens|eam|10.2.0
EditorConfig|Edi|0.14.4
file-icons|fil|1.0.21
gc-excelviewer|Gra|2.1.32
name-that-color|gui|0.1.2
json2csv|kha|0.0.1
l13-diff|L13|0.21.0
git-tree-compare|let|1.7.1
vetur|oct|0.23.0
multi-command|ryu|1.4.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)

</details>
<!-- generated by issue reporter -->

VS Code version: Code - Insiders 1.42.0-insider (7e64866a703c83dcdd3b84a8b48dd1673895fb7d, 2020-01-09T06:43:40.314Z)
OS version: Darwin x64 18.7.0

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz (8 x 3400)|
|GPU Status|2d_canvas: enabled<br>flash_3d: enabled<br>flash_stage3d: enabled<br>flash_stage3d_baseline: enabled<br>gpu_compositing: enabled<br>metal: disabled_off<br>multiple_raster_threads: enabled_on<br>oop_rasterization: unavailable_off<br>protected_video_decode: unavailable_off<br>rasterization: unavailable_off<br>skia_renderer: disabled_off<br>surface_control: disabled_off<br>surface_synchronization: enabled_on<br>video_decode: enabled<br>viz_display_compositor: enabled_on<br>viz_hit_test_surface_layer: disabled_off<br>webgl: enabled<br>webgl2: enabled|
|Load (avg)|2, 2, 3|
|Memory (System)|8.00GB (0.31GB free)|
|Process Argv||
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (17)</summary>

Extension|Author (truncated)|Version
---|---|---
project-manager|ale|10.9.1
vscode-eslint|dba|2.0.14
gitlens|eam|10.2.0
EditorConfig|Edi|0.14.4
file-icons|fil|1.0.21
gc-excelviewer|Gra|2.1.32
name-that-color|gui|0.1.2
json2csv|kha|0.0.1
l13-diff|L13|0.21.0
git-tree-compare|let|1.7.1
vetur|oct|0.23.0
multi-command|ryu|1.4.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)

</details>
<!-- generated by issue reporter -->