Skip to content

Commit

Permalink
Merge pull request #201425 from russelldavis/fix-autoindent-on-closin…
Browse files Browse the repository at this point in the history
…g-paren

Fix decreaseIndentPattern for javascript and typescript
  • Loading branch information
aiday-mar authored Mar 11, 2024
2 parents c658210 + 946d53e commit c76d56c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
},
"indentationRules": {
"decreaseIndentPattern": {
"pattern": "^((?!.*?/\\*).*\\*\/)?\\s*[\\}\\]].*$"
"pattern": "^((?!.*?/\\*).*\\*\/)?\\s*[\\}\\]\\)].*$"
},
"increaseIndentPattern": {
"pattern": "^((?!//).)*(\\{([^}\"'`/]*|(\\t|[ ])*//.*)|\\([^)\"'`/]*|\\[[^\\]\"'`/]*)$"
Expand Down
2 changes: 1 addition & 1 deletion extensions/typescript-basics/language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
},
"indentationRules": {
"decreaseIndentPattern": {
"pattern": "^((?!.*?/\\*).*\\*\/)?\\s*[\\}\\]].*$"
"pattern": "^((?!.*?/\\*).*\\*\/)?\\s*[\\}\\]\\)].*$"
},
"increaseIndentPattern": {
"pattern": "^((?!//).)*(\\{([^}\"'`/]*|(\\t|[ ])*//.*)|\\([^)\"'`/]*|\\[[^\\]\"'`/]*)$"
Expand Down

0 comments on commit c76d56c

Please sign in to comment.