equinor / fmu-editor

5 stars 2 forks source link

[FEATURE] Allow arbitrary file extension text file editing #37

Open mferrera opened 1 year ago

mferrera commented 1 year ago

It's common that ASCII text files in FMU projects have no file extension or arbitrary ones. Some key examples of this are

These files don't necessarily need highlighting but should be supported. This could mean opening files with unsupported file extensions as text by default or reading the entirety of the file to ensure it's fully ASCII or UTF-8 before opening. The Monaco portion of the code does the former already, so it might be the case that only the openFile thunk needs to be looked at.