PowerToys/doc/devdocs/modules/powerpreview/monaco
Aaron Junker 4cc74602c1
[Developer Preview] Bug fixes (#16108)
* Renamed languages.json to monaco_languages.json

* Update excludes.txt

* Fixed encoding issue

* Reverted accidently removed file

* push

* push

* push

* Fixing path to monaco_languages.json

* Removing unused file

* Fixing NullReferenceException bug

* Minor fixes

Co-authored-by: Stefan Markovic <stefan@janeasystems.com>
2022-02-21 16:10:55 +01:00
..
readme.md [Developer Preview] Bug fixes (#16108) 2022-02-21 16:10:55 +01:00

Developer Preview (Monaco)

Developer preview is based on Microsofts Monaco Editor which is maintained by the Visual Studio Code team.

Update monaco editor

  1. Download Monaco editor with npm: npm i monaco-editor.
  2. Delete everything except the min folder (the minimised code).
  3. Copy the min folder inside the monacoSRC folder.
  4. Generate the JSON file (see section below)

monaco_languages.json

monaco_languages.json contains all extensions and Id's for the supported languages of Monaco. The FileHandler class and the installer are using this file.

Generate monaco_languages.json file

After you updated monaco editor or adding a new language you should update the monaco_languages.json file.

  1. Build monaco in debug mode.
  2. Open generateLanguagesJson.html in a browser.
  3. Replace the old JSON file.