Commit be58d6d
committed
test(language_server): fix test for ServerFormatter in windows (#14210)
The language server formatter tests were failing on Windows due to line ending differences between platforms. This caused snapshot test mismatches, leading to the test being disabled on Windows.
The fix ensures that during tests on Windows, source files are normalized to use LF line endings, making the formatting results consistent with Linux snapshots and allowing the test to run successfully on all platforms.
`FormatOptions::line_ending` default value is LF ending, changing it only for windows will still result into snapshot changes.1 parent 39a171e commit be58d6d
1 file changed
+7
-2
lines changedLines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
25 | 31 | | |
26 | 32 | | |
27 | 33 | | |
| |||
191 | 197 | | |
192 | 198 | | |
193 | 199 | | |
194 | | - | |
195 | 200 | | |
196 | 201 | | |
197 | 202 | | |
| |||
0 commit comments