Contributing / Dev Setup
Source Code Structure
It is important to understand that the Monaco Editor Core is built directly from the VS Code source code.
The Monaco Editor then enhances the Monaco Editor Core with some basic language features.
This diagram describes the relationships between the repositories and the npm packages:
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-0xwFAM8q-1681576019932)(./docs/code-structure.dio.svg)]
By default, monaco-editor-core
is installed from npm (through the initial npm install
), so you can work on Monaco Editor language features without having to build the core editor / VS Code.
The nightly builds build a fresh version of monaco-editor-core
from the main
branch of VS Code.
For a stable release, the commit specified in vscodeRef
in package.json specifies the commit of VS Code that is used to build monaco-editor-core
.
Contributing a new tokenizer / a new language
Please understand that we only bundle languages with the monaco editor that have a significant relevance (for example, those that have an article in Wikipedia).
- create
$/src/basic-languages/{myLang}/{myLang}.contribution.ts
- create
$/src/basic-languages/{myLang}/{myLang}.ts
<