Latest version | 0.0.8 |
---|---|
Minimum Core | 0.8.5 |
Compatible Core | 0.8.9 |
Last updated | 3 years ago |
Created | 3 years ago |
Authors |
|
Languages |
English |
Systems | All systems |
Project source | Project URL |
This module adds the Monaco Editor (the editor used in VS Code, as well as other online editors) as the macro editor in Foundry, allowing users to use a slightly slimmed down version of the editor within foundry itself. It also adds types provided by the League Of Foundry Developers to allow for a nicer scripting experience from within Foundry itself.
A thing to note about the module, whilst the Monaco Editor is very powerful, it could be a bit too heavy for those who are on a weaker machine, in which case I'd recommend using the Ace Macro Editor instead.
To make it easier to add new typings for other modules and libraries to foundry, a hook provides a function to register types. the register function takes a fake filepath and the typescript file as a string.
Hooks.on("monaco-editor.ready", (registerTypes) => { registerTypes("module-name/index.ts", ` declare class Foo { bar (): string | null } `) })
To install this package, open your Foundry Setup screen and navigate to your Module tab and click the Install Module button.
From there, you can either search for the package unique name: monaco-macro-editor or copy its manifest URL:
And paste it to the input box at the bottom of your window.
You can install this package directly to your Forge account.
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Advertisement cookies are used to deliver visitors with customized advertisements based on the pages they visited before and analyze the effectiveness of the ad campaign.