You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For cross-platform reasons (see FirebaseExtended/firepad#315), I need to force the editor to use a particular line ending. I see setEOL/pushEOL on the model, but that seems to change the current contents of the editor but not set the EOL permanently -- if the editor is cleared or replaced with other text, the set EOL can be lost.
From poking around the code, I found that the default EOL comes from SimpleResourcePropertiesService.getEOL, and varies by platform, but first it tries to read the files.eol configuration value. Thus I can fix the problem by setting that value:
This works, but I don't think this is supposed to be a public interface. Can some better way to enforce a particular line ending be added to the editor or text model?
The text was updated successfully, but these errors were encountered:
Yes, setValue calls will reset the EOL to the new content passed in. The solution is to change the EOL after calling setValue or to use applyEdits to change the contents.
For cross-platform reasons (see FirebaseExtended/firepad#315), I need to force the editor to use a particular line ending. I see setEOL/pushEOL on the model, but that seems to change the current contents of the editor but not set the EOL permanently -- if the editor is cleared or replaced with other text, the set EOL can be lost.
From poking around the code, I found that the default EOL comes from
SimpleResourcePropertiesService.getEOL
, and varies by platform, but first it tries to read thefiles.eol
configuration value. Thus I can fix the problem by setting that value:This works, but I don't think this is supposed to be a public interface. Can some better way to enforce a particular line ending be added to the editor or text model?
The text was updated successfully, but these errors were encountered: