Skip to content

Python de-indentation  #4506

@Canorus

Description

@Canorus

Environment data

  • VS Code version: 1.13.1
  • Extension version (available under the Extensions sidebar): 2019.1.0
  • OS and version: macOS 10.13.6
  • Python version (& distribution if applicable, e.g. Anaconda): python 3.7.2
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A
  • Relevant/affected Python packages and their versions: XXX

Expected behaviour

if True:
    print()
else:
    print()
try:
    print()
except:
    print()

Actual behaviour

vsc_indent_bug_opt_1

Steps to reproduce:

  1. XXX

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

XXX

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging)

XXX

This may be a duplicate of known issue #2367 and #771 and #3188 , but issue #2367 points to #771, and #771 says this was supposed to be fixed by #2724 , and was closed and locked.

Issue #3188 was also closed due to being upstream issue, while microsoft/vscode#62464 (and microsoft/vscode#62519 which was claimed as duplicate) says this should be reported to extension repository.

This issue was supposed to be fixed, which isn't, it seems it's not very certain where this issue should go to, I'm just hoping I'm reporting to right place. Thanks.

Metadata

Metadata

Assignees

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