randomPoison / text-edit

1 stars 0 forks source link

Paths with windows-style separators won't open #5

Open randomPoison opened 7 years ago

randomPoison commented 7 years ago

If we pass a path with Windows-style path separators ("\" instead of "/") to xi-core when opening a file we need to escape "\" to "\". If we don't then the JSON doesn't parse and xi-core prints an error. Using Unix-style path separators is a workaround.

This is likely best resolved by switching to more structured RPC message handling, i.e. using serde-json to generate the final JSON message, allowing serde-json to perform any escaping necessary.