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
Right now when loading a generator/loader Fornax transform the name of the file using textInfo.ToTitleCase meaning that if the user write postLoader.fsx it will be transformed into Postloader for the open instruction.
From what I see, when using #load "postLoader.fsx" the name of the module generated by the F# compiler is PostLoader meaning that it only capitalise the name of the file.
letinternalgetOpen(path :string)=letfilename= Path.GetFileNameWithoutExtension path
lettextInfo=(CultureInfo("en-US",false)).TextInfo
string (textInfo.ToUpper filename[0])+ filename[1..]// or this one as I am not sure if the CultureInfo is requiredletinternalgetOpen(path :string)=letfilename= Path.GetFileNameWithoutExtension path
(string filename[0]).ToUpperInvariant()+ filename[1..]
Doing this change would allow the user have better naming for its files.
The text was updated successfully, but these errors were encountered:
Describe the bug
Right now when loading a generator/loader Fornax transform the name of the file using
textInfo.ToTitleCase
meaning that if the user writepostLoader.fsx
it will be transformed intoPostloader
for theopen
instruction.From what I see, when using
#load "postLoader.fsx"
the name of the module generated by the F# compiler isPostLoader
meaning that it only capitalise the name of the file.Can we change
to
Doing this change would allow the user have better naming for its files.
The text was updated successfully, but these errors were encountered: