enso/app/ydoc-shared
Paweł Grabarz 6bfdda33a9
Do not crash on empty main function body. (#10990)
Fixes #10976

https://github.com/user-attachments/assets/00b2279d-2acf-468b-8c3c-aa6885cba23d


Addressed issue of empty body block being incorrectly "repaired" into an empty group, geneating invalid `()` syntax. Appending nodes to an empty function now actually replaces its body block, instead of creating a temporary orphan body block node.

Note that empty main function is still considered an error on the engine side, but it doesn't impact the IDE in negative way. Things work again as soon as a node is inserted.

Also fixed a few issues causing hot-reloading to break. Now edited AST code properly hot-reloads all affected modules without breaking the app.
2024-09-06 18:45:20 +00:00
..
parser-codegen Split ydoc server into separate module (#10735) 2024-08-08 12:12:05 +00:00
src Do not crash on empty main function body. (#10990) 2024-09-06 18:45:20 +00:00
package.json Split ydoc server into separate module (#10735) 2024-08-08 12:12:05 +00:00
tsconfig.json Split ydoc server into separate module (#10735) 2024-08-08 12:12:05 +00:00
vitest.config.ts Split ydoc server into separate module (#10735) 2024-08-08 12:12:05 +00:00