-
Notifications
You must be signed in to change notification settings - Fork 7.6k
monaco devdocs #15691
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
noraa-junker
merged 7 commits into
feature/monacoPreviewPane
from
users/aaron-junker/monaco-devdocs
Jan 25, 2022
Merged
monaco devdocs #15691
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
265f1fb
Create update-monaco-editor.md
noraa-junker cba1977
Update and rename update-monaco-editor.md to readme.md
noraa-junker f62b5e0
Update doc/devdocs/modules/powerpreview/monaco/readme.md
noraa-junker cd37792
Update doc/devdocs/modules/powerpreview/monaco/readme.md
noraa-junker 67c045e
Update doc/devdocs/modules/powerpreview/monaco/readme.md
noraa-junker ae7d1d2
Update readme.md
noraa-junker 05efc85
Update readme.md
noraa-junker File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| # Developer Preview (Monaco) | ||
|
|
||
| Developer preview is based on [Microsofts Monaco Editor](https://microsoft.github.io/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`](/src/modules/previewpane/MonacoPreviewHandler/monacoSRC) folder. | ||
| 4. Generate the JSON file (see section below) | ||
|
|
||
| ## languages.json | ||
|
|
||
| [`languages.json`](/src/modules/previewpane/MonacoPreviewHandler/languages.json) contains all extensions and Id's for the supported languages of Monaco. The [`FileHandler`](/src/modules/previewpane/MonacoPreviewHandler/FileHandler.cs) class and the installer are using this file. | ||
|
|
||
| ### Generate languages.json file | ||
|
|
||
| After you updated monaco editor or adding a new language you should update the [`languages.json`](/src/modules/previewpane/MonacoPreviewHandler/languages.json) file. | ||
|
|
||
| 1. Build monaco in debug mode. | ||
| 2. Open [generateLanguagesJson.html](/src/modules/previewpane/MonacoPreviewHandler/generateLanguagesJson.html) in a browser. | ||
| 3. Replace the old JSON file. | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.