On Sat, Sep 2, 2023 at 8:49 PM Félix <[email protected]> wrote:

> Not sure what to decide for this so I thought of doing this quick survey!
> :)
>
> When running scripts, (CTRL+B) Leo offers the g, c and p variables. I
> obviously want to expose the vscode API from it's base object "vscode".
>
> Should it be top-level along with c, g and p? or, be located at:
>
> g.vscode
>
> or
>
> g.app.vscode
>

Interesting question. All three choices, vscode, g.vscode and g.app.vscode
are feasible.

g.vscode seems like the worst choice.

I tend to agree with Thomas. g.app.vscode is most explicit. Furthermore,
g.app is likely the best place for a "pointer" to vscode.

A default/automatic binding to vscode doesn't seem like it would be all
that useful. Any code can bind vscode to g.app.vscode easily enough. I
might change my mind if you envision scenarios in which there are *lots* of
usages of g.app.vscode.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS0ROvjpOvLiTMEt%3DHFRC0CRv-Hwd23Wgns%3Dd84A%2BCp0eQ%40mail.gmail.com.

Reply via email to