Commit e4ba07f
committed
fix(language_server): always write to memory file system (#15975)
In #15882 we removed the dynamic formatting registration and registered them statically.
LSP Clients could only support static formatting registration and the checks would fail. When someone formats, while not saving, the unsaved changes would disappear.
Removed the checks, so it always saves the content in the file system. Later the Linter will use the file system too when supporting [textDocument/diagnostic](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_diagnostic)1 parent 54e8799 commit e4ba07f
2 files changed
+8
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
| 236 | + | |
236 | 237 | | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | 238 | | |
241 | 239 | | |
242 | 240 | | |
| |||
466 | 464 | | |
467 | 465 | | |
468 | 466 | | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
| 467 | + | |
| 468 | + | |
473 | 469 | | |
474 | 470 | | |
475 | 471 | | |
| |||
487 | 483 | | |
488 | 484 | | |
489 | 485 | | |
490 | | - | |
491 | | - | |
492 | | - | |
| 486 | + | |
493 | 487 | | |
494 | 488 | | |
495 | 489 | | |
| |||
513 | 507 | | |
514 | 508 | | |
515 | 509 | | |
516 | | - | |
517 | | - | |
518 | | - | |
| 510 | + | |
519 | 511 | | |
520 | 512 | | |
521 | 513 | | |
| |||
534 | 526 | | |
535 | 527 | | |
536 | 528 | | |
537 | | - | |
538 | | - | |
539 | | - | |
| 529 | + | |
| 530 | + | |
540 | 531 | | |
541 | 532 | | |
542 | 533 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
| |||
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | 27 | | |
34 | | - | |
| 28 | + | |
35 | 29 | | |
36 | 30 | | |
37 | 31 | | |
| |||
0 commit comments