RepoPilot

microsoft / monaco-editor

Search microsoft/monaco-editor

GitHub

Code

How microsoft/monaco-editor is laid out, and where to start for common changes.

There is no import map for this report yet.

Where to start reading

  1. Repository root
  2. Repository root
  3. Likely public API
  4. Suggested starting pointAI
  5. Suggested starting pointAI
  6. Suggested starting pointAI
  7. Suggested starting pointAI
  8. Suggested starting pointAI

Find files for a task

AI

Add a new language definition

  • Define tokenization rules and syntax in the main language file (e.g., python.ts)
  • Create register.ts to export language configuration and feature registration
  • Add language export to the central contribution loader
  • Add corresponding test file for syntax validation

Add a new editor feature

  • Implement feature logic and export via register.js
  • Create TypeScript declarations in register.d.ts for type safety
  • Register feature in main editor or feature contribution system

Set up a language worker for advanced services

  • Create worker entry point file in deprecated/language/{lang}/ directory
  • Implement language server protocol or custom worker interface
  • Register worker in language contribution via register.ts
  • Export worker initialization from language definition module

Change the public API

Add or update tests

Change build or automation

RepoPilot lists up to 500 files, so a file missing here may still exist.

  • Files marked “likely” are guessed from their names.
  • Some entry points named in the manifest are build output or are missing from the file list, so their source is not shown.

Code quality and hotspots

Largest source files

  • Branch points3770 per file on average
  • Code issues334 errors, 6434 warnings
  • Largest file200,298 lines
  • Hotspot load0 high-risk files

Static checks on the 15 largest source files.

Tests, CI and tooling

  • CIGitHub Actions2 workflows
  • Tests135 test filesJest/Vitest · 0.26 test files per source file (file count, not coverage)
  • Dependency updatesNo config detected

Test folders: src/languages/definitions/freemarker2 · src/languages/definitions/abap · src/languages/definitions/apex

Hotspots

Files that change often and branch heavily, highest first. Branch points count if, loop, case, catch, ternary, && and || in the file.