How should the content of the file read from the disk be converted to “Text”?
Either don’t convert, and just pass a string under the doc
option, or split it into lines and pass it to Text.of
.
Because I need to call changes.apply to generate the latest content and write it to the disk, and the apply function receives a ‘Text’, so I need to convert it on the server side. When intercepting, I should use the newline character ‘\n’ to Is it intercepted?