Skip to content

Commit

Permalink
fix: fixes closing braces in formatter (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas51 authored Sep 12, 2022
1 parent 9ed80e8 commit 5b54094
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const registerDocumentProvider = (
skip = true
}

if (!skip && line.endsWith(BRACE_CLOSE)) {
if (!skip && line.includes(BRACE_CLOSE)) {
indentLevel--
}

Expand Down

0 comments on commit 5b54094

Please sign in to comment.