Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Autocomplete adding extra tab when closing tag on new line #1027

Open
ulysses opened this issue Apr 9, 2019 · 2 comments
Open

Autocomplete adding extra tab when closing tag on new line #1027

ulysses opened this issue Apr 9, 2019 · 2 comments

Comments

@ulysses
Copy link

ulysses commented Apr 9, 2019

Prerequisites

Description

When closing an HTML tag autocomplete adds an extra tab, putting the closing tag an extra tab over on the new line.

Steps to Reproduce

  1. Begin to write a tag
  2. Chose autocomplete tag option
  3. Hit return

Expected behavior:

The tag would align with the same tabs as corresponding tag

Actual behavior:

Like this:

<div>
     </div>

Reproduces how often:
Every time autoclosing a tag that uses a new line.

Versions

Atom : 1.35.1
Electron: 2.0.18
Chrome : 61.0.3163.100
Node : 8.9.3
apm 2.1.3
npm 6.2.0
node 8.9.3 x64
atom 1.35.1
python 2.7.10
git 2.15.2

@rsese
Copy link

rsese commented Apr 11, 2019

Thanks for the report @ulysses - if you save the HTML file and then close and reopen it, does the indentation start working for you? Alternatively, do things start working if you temporarily disable Settings > Core > Use Tree Sitter Parsers?

Also wonder if this is the same issue as atom/language-html#222.

@ulysses
Copy link
Author

ulysses commented Apr 22, 2019

@rsese If I close and reopen, the issue remains. But disabling Tree Sitter Parsers did fix it. Thanks! I had to look up what that even did. Doesn't seem like I need it on, being a simple front-end guy.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants