Reconfigure lineseparator not working

Trying to create a button to change CRLF/LF just like VSCode.
No error but it didn’t work.

Hi @marijn, Can you check what am I missing?

I already tried the language reconfigure example, it is working fine.
Also tried setting up a minimum setup to check this lineSeparator but no luck.

Here is clean code version codesandbox link to try
codesandbox

Thanks!

At a glance, it looks like you’re expecting a state object to change then the view is updated. edState almost certainly continues to refer to the old state in that code.

I exactly copied the tabSize’s example from https://codemirror.net/examples/config/ . But I am not sure what’s missing. This example is also not working, so probably you are right.