More script editor options (#386)

* Options are responsive again (fix from previous changes)
* Better height control on the monaco container using flexbox.
* Added options for tab size, auto-detect indentation per-file, font family, and font ligatures.
This commit is contained in:
Snarling
2023-02-24 07:37:29 -05:00
committed by GitHub
parent ee3b220858
commit 4166c09bd4
5 changed files with 99 additions and 43 deletions

View File

@@ -78,9 +78,18 @@ export const Settings = {
PurchaseAugmentationsOrder: PurchaseAugmentationsOrderSetting.Default,
/** Script editor theme. */
MonacoTheme: "monokai",
MonacoInsertSpaces: false,
/** Whether to use spaces instead of tabs for indentation */
MonacoInsertSpaces: true,
/** Size of indentation */
MonacoTabSize: 2,
/** Whether to auto detect indentation settings per-file based on contents */
MonacoDetectIndentation: false,
/** Font Family for script editor. */
MonacoFontFamily: "Lucida Console",
/** Text size for script editor. */
MonacoFontSize: 20,
/** Whether to use font ligatures */
MonacoFontLigatures: false,
/** Whether to use Vim mod by default in the script editor */
MonacoVim: false,
/** Word wrap setting for Script Editor. */