Extension APIs
moonlight globals
The global types are available here. Read the comments for more information. What globals you can use depends on the current environment:
moonlight
: available in the web environment (index.ts
, Webpack modules)- Contains patching and Webpack module information, the API level, localStorage, LunAST, moonmap
moonlightNode
: available in the web and Node.js environments- Contains configuration details, browser checks
- Polyfilled in the browser extension
moonlightNodeSandboxed
: available in the Node.js environments (node.ts
)- Contains filesystem APIs
moonlightHost
: available in the host environment (host.ts
)- Contains configuration details,
.asar
path
- Contains configuration details,
Extension libraries
Remember to add the module as a dependency.
Context Menu
- Module ID:
contextMenu_contextMenu
- Types: here
Markdown
- Module ID:
markdown_markdown
- Types: here
Notices
- Module ID:
notices_notices
- Types: here
Settings
- Module ID:
settings_settings
- Types: here
Spacepack
- Module ID:
spacepack_spacepack
- Types: here