microsoft/vscode

Wrong tab size for yaml files

abkieling opened this issue · 2 comments

Issue Type: Bug

The editor isn't respecting the default tab size for yaml files.
The default tab size is 2 but the editor incorrectly uses 4.

Steps to reproduce:

  • Open Preferences > Settings and search for "yaml"
  • Confirm that "editor.tabSize" for yaml files is set to 2
  • Create a new yaml file
  • Note that the number of spaces is set to 4

VS Code version: Code 1.26.0 (4e93618, 2018-08-13T16:25:59.521Z)
OS version: Linux x64 4.17.14-202.fc28.x86_64

System Info
Item Value
CPUs Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz (4 x 2799)
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: disabled_software
video_decode: unavailable_software
video_encode: unavailable_software
webgl: enabled
webgl2: enabled
Load (avg) 1, 1, 1
Memory (System) 19.03GB (9.10GB free)
Process Argv /usr/share/code/code --unity-launch
Screen Reader no
VM 0%
Extensions (10)
Extension Author (truncated) Version
EditorConfig Edi 0.12.4
indenticator Sir 0.6.0
auto-close-tag for 0.5.6
auto-rename-tag for 0.0.15
vscode-docker Pet 0.1.0
java red 0.29.0
vscode-java-debug vsc 0.11.0
vscode-java-pack vsc 0.3.0
vscode-java-test vsc 0.8.0
vscode-maven vsc 0.10.0

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

It looks like EditorConfig extension is causing the issue.