Commit 4d2aa9b
Andy
Fix formatting when keyword is parsed as part of a JSX identifier (e.g.
module-layout) (microsoft#18598)1 parent 7dec4ae commit 4d2aa9bCopy full SHA for 4d2aa9b
2 files changed
+12-2Lines changed: 12 additions & 2 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- src/services/formatting
- tests/cases/fourslash
Expand file treeCollapse file tree
Open diff view settings
Collapse file
src/services/formatting/formattingScanner.ts
Copy file name to clipboardExpand all lines: src/services/formatting/formattingScanner.ts+3-2Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
125 | 125 | |
126 | 126 | |
127 | 127 | |
128 | | - |
| 128 | + |
| 129 | + |
129 | 130 | |
130 | 131 | |
131 | 132 | |
| ||
209 | 210 | |
210 | 211 | |
211 | 212 | |
212 | | - |
| 213 | + |
213 | 214 | |
214 | 215 | |
215 | 216 | |
|
Collapse file
tests/cases/fourslash/formatJsxWithKeywordInIdentifier.ts
Copy file name to clipboard+9Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
0 commit comments