Skip to content

wrong indentation detection for python #3188

@beantowel

Description

@beantowel

Issue Type: Bug

open a file including these line:

def foo(bars):
    for bar in bars:
        pass

vs code will detect the indentation as Spaces: 8, where the correct indentation setting should be 4 spaces.

VS Code version: Code 1.28.2 (7f3ce96ff4729c91352ae6def877e59c561f4850, 2018-10-17T00:20:56.183Z)
OS version: Linux x64 4.15.0-38-lowlatency

Extensions (13)
Extension Author (truncated) Version
code-gnu-global aus 0.2.2
thrift cdu 0.0.1
vscode-markdownlint Dav 0.21.0
code-runner for 0.9.5
latex-workshop Jam 5.13.0
racket kar 0.0.3
vscode-clang mit 0.2.3
anaconda-extension-pack ms- 1.0.1
python ms- 2018.9.2
cpptools ms- 0.20.1
vscode-yaml red 0.0.17
cmake twx 0.0.17
clang-format xav 1.6.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions