atom/autocomplete-plus

Autocomplete adding extra tab when closing tag on new line

ulysses opened this issue · 2 comments

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 commented

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.

@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.