Commit ff5706e
[analysis_server] Exclude the enum body semicolon from format-on-type
`EnumBody.semicolon` is the semicolon between the constants and other members. Since the formatter removes this semicolon if there's nothing after it, we can't have it trigger formatting or it will just immediately delete the semicolon you typed.
Fixes #61909
Fixes dart-lang/dart_style#1782
Fixes Dart-Code/Dart-Code#5602
Change-Id: I52bf113b832446da1b672d949d0fc3c2f6d018bf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/466101
Commit-Queue: Samuel Rawlins <[email protected]>
Reviewed-by: Samuel Rawlins <[email protected]>
Commit-Queue: Brian Wilkerson <[email protected]>
Reviewed-by: Brian Wilkerson <[email protected]>1 parent 1da50ff commit ff5706e
File tree
2 files changed
+21
-1
lines changed- pkg/analysis_server
- lib/src/lsp/handlers
- test/lsp
2 files changed
+21
-1
lines changedLines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
132 | 131 | | |
133 | 132 | | |
134 | 133 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
256 | 266 | | |
257 | 267 | | |
258 | 268 | | |
| |||
318 | 328 | | |
319 | 329 | | |
320 | 330 | | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
321 | 342 | | |
322 | 343 | | |
323 | 344 | | |
| |||
0 commit comments