Skip to content

tposney/monaco-macro-editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2c73da3 Β· Sep 2, 2024

History

36 Commits
Jul 10, 2021
Jul 10, 2021
Aug 13, 2024
Jul 2, 2021
Sep 19, 2021
Aug 5, 2024
Sep 19, 2021
Jul 10, 2021
Oct 31, 2023
Jul 2, 2021
Jul 10, 2021
Oct 24, 2023
Jun 1, 2024
Oct 24, 2023
May 25, 2024
Oct 24, 2023
Oct 24, 2023
Jul 10, 2021
Sep 19, 2021

Repository files navigation

Monaco Macro Editor

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.

For Library/Module Developers

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
}
  `)
})

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 99.7%
  • Other 0.3%