Commit b05216e
Address PR feedback: remove unused markers and fix nil pointer crash
- Remove unused markers (/*1*/, /*2*/, /*3*/) from formatDocumentInPlace_test.go
- Apply fix from PR #1993 to prevent nil pointer crash in indent.go when firstListChild is nil
- Add comment about known trailing space issue (#1997)
The indent.go fix prevents crashes when formatting ranges where the list has no first child.
Co-authored-by: DanielRosenwasser <972891+DanielRosenwasser@users.noreply.github.com>1 parent a0c8f66 commit b05216e
File tree
2 files changed
+9
-5
lines changed- internal
- format
- fourslash/tests
2 files changed
+9
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
70 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
71 | 74 | | |
72 | 75 | | |
73 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
0 commit comments