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

Detect Indentation from Content Detects Wrong Number of Spaces #62519

Closed
ccaspers opened this issue Nov 3, 2018 · 4 comments
Closed

Detect Indentation from Content Detects Wrong Number of Spaces #62519

ccaspers opened this issue Nov 3, 2018 · 4 comments
Labels
*duplicate Issue identified as a duplicate of another issue(s) editor-autoindent Editor auto indentation issues

Comments

@ccaspers
Copy link

ccaspers commented Nov 3, 2018

  • VSCode Version: 1.28.2 7f3ce96 x64
  • OS Version: Arch Linux x86_64 Linux 4.18.16-zen1-1-zen

Steps to Reproduce:

  1. Open Code
  2. Create a new file add the following contents
def fun(x):
    return x


def bug(x):
    if x:
        return x
  1. Run "Detect Indentation from Content"
  2. Detected: 8 Spaces, but should be 4 Spaces

Does this issue occur when all extensions are disabled?: Yes

Here are some screenshots providing additional detail and variations

  • This is how it should be:
    vscode-indent-no-bug
  • This is one example of the bug
    vscode-indent-bug
  • Here is another one using different language features
    vscode-bug-alternative
@vscodebot
Copy link

vscodebot bot commented Nov 3, 2018

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

@vscodebot vscodebot bot added the editor-autoindent Editor auto indentation issues label Nov 3, 2018
@ccaspers
Copy link
Author

ccaspers commented Nov 3, 2018

Duplicate of #62464

@kieferrm
Copy link
Member

kieferrm commented Nov 4, 2018

/duplicate of #62464

@vscodebot vscodebot bot added the *duplicate Issue identified as a duplicate of another issue(s) label Nov 4, 2018
@vscodebot
Copy link

vscodebot bot commented Nov 4, 2018

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines.

Happy Coding!

@vscodebot vscodebot bot closed this as completed Nov 4, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Dec 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) editor-autoindent Editor auto indentation issues
Projects
None yet
Development

No branches or pull requests

2 participants