LeoJS: What is the equivalent of LeoPyRef.leo?

27 views
Skip to first unread message

Thomas Passin

unread,
Dec 23, 2023, 10:54:43 PM12/23/23
to leo-editor
IOW, where or how do we look at Leo's code? Locations like g.app.leoDir are undefined.

Félix

unread,
Dec 24, 2023, 12:15:08 PM12/24/23
to leo-editor
Hi Thomas, 

Great question -- Thanks for asking!

Since LeoJS is a VSCode (or vscodium) extension, its source code is compiled/minified somehow, and many other source files are omitted from the final 'distribution' package.

Therefore, the way to open and view LeoJS source files (or browse it's Leo source file in Leo/LeoJS) is to clone the repo from https://github.com/boltex/leojs, and look at the base of the project folder for leojs.leo. 

screen.png

This would be the equivalent of LeoPyRef.leo. (and if you're looking for the equivalent of the base setting file, leoSettings.leo, its at the same place, and named leojsSettings.leojs.

Hope this helps! 🦁

Félix


Thomas Passin

unread,
Dec 24, 2023, 12:45:59 PM12/24/23
to leo-editor
Thanks, Felix.  Now if we wanted to test out a code modification or addition, how would we incorporate that into an extension that VSC could load or install?
Reply all
Reply to author
Forward
0 new messages