Clint Rutkas d72fa2ea6e Update Monaco Editor from 0.47.0 to 0.52.2 (#48415)
## Summary of the Pull Request

Updates the vendored Monaco Editor from 0.47.0 (Mar 2024) to 0.52.2 (Dec
2024).

## PR Checklist

- [x] **Communication:** Discussed in #46692 review
- [x] **Tests:** Headless-browser smoke tests pass (syntax highlighting,
custom languages, context-menu hack, addAction registration)
- [x] **Dev docs:** No doc changes needed (update process unchanged)

## Detailed Description

### What changed

| Area | Detail |
|------|--------|
| `src/Monaco/monacoSRC/min/` | Replaced with `monaco-editor@0.52.2`
from npm |
| NLS layout | `editor.main.nls.*.js` / `simpleWorker.nls.*.js` removed
upstream → `vs/nls.messages.*.js` added |
| New language | `typespec` shipped upstream (+1 language, 100→101
total) |
| `monacoSpecialLanguages.js` | Inline grammar snapshots
(cpp/xml/razor/vb/ini/shell) refreshed from 0.52.2 shipped files |
| `monaco_languages.json` | Regenerated; all PowerToys custom languages
+ extension mappings intact |

### Supply-chain verification

- npm tarball SHA-512 verified against registry SRI:
`sha512-GEQWEZmfkOGLdd3XK8ryrfWz3AIP8YymVXiPHEdewrUq7mh0qrKrfHLNCXcbB6sTnMLnOZ3ztSiKcciFUkIJwQ==`
- Vendored tree hash-verified file-by-file (103 files, all match)

### Why 0.52.2 and not 0.55.1 (latest)?

Monaco 0.53+ completely restructured the `min/` bundle: flat hashed
chunks instead of per-language AMD modules,
`vs/platform/actions/common/actions` removed,
`vs/basic-languages/<id>/<id>` modules eliminated. PowerToys'
`index.html` (context-menu stripping via MenuRegistry) and
`monacoSpecialLanguages.js` (language cloning via AMD require) depend on
these internals. **0.52.2 is the last release compatible without a
glue-code rewrite.** The 0.55.x port is tracked separately.

## Validation Steps Performed

- [x] Tarball SRI integrity verified against npm registry
- [x] Vendored tree == tarball (SHA-256 per file, 103/103 match)
- [x] `monacoSpecialLanguages.js` passes Node.js syntax check
- [x] Headless smoke test (Edge via puppeteer-core): editor creates,
tokenization paints (5+ classes), `addAction` entries register,
`MenuRegistry` context-menu hack works
- [x] Same smoke test passes identically on 0.47.0 baseline (no
regressions)
- [x] `monaco_languages.json`: 101 languages, all custom IDs present
(reg, gitignore, srt, cppExt, xmlExt, txtExt, razorExt, vbExt, iniExt,
shellExt)

## Related

- Supersedes automation approach in #46692 (which has fatal bugs; will
close separately)
- 0.55.x port tracked as follow-up issue

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: b6bd2181-eff3-4f2a-b25e-dcd1065ead6a
2026-07-28 20:54:52 -07:00
2026-02-14 15:47:56 +08:00

Microsoft PowerToys

Microsoft PowerToys is a collection of utilities that help you customize Windows and streamline everyday tasks.

Installation · Documentation · Blog · Release notes

🔨 Utilities

PowerToys includes over 30 utilities to help you customize and optimize your Windows experience:

Advanced Paste icon Advanced Paste Always on Top icon Always on Top Awake icon Awake
Color Picker icon Color Picker Command Not Found icon Command Not Found Command Palette icon Command Palette
Crop and Lock icon Crop And Lock Environment Variables icon Environment Variables FancyZones icon FancyZones
File Explorer Add-ons icon File Explorer Add-ons File Locksmith icon File Locksmith Grab And Move icon Grab And Move
Hosts File Editor icon Hosts File Editor Image Resizer icon Image Resizer Keyboard Manager icon Keyboard Manager
Light Switch icon Light Switch Mouse Utilities icon Mouse Utilities Mouse Without Borders icon Mouse Without Borders
New+ icon New+ Peek icon Peek PowerDisplay icon PowerDisplay
PowerRename icon PowerRename PowerToys Run icon PowerToys Run Quick Accent icon Quick Accent
Registry Preview icon Registry Preview Screen Ruler icon Screen Ruler Shortcut Guide icon Shortcut Guide
Text Extractor icon Text Extractor Workspaces icon Workspaces ZoomIt icon ZoomIt

📦 Installation

For detailed installation instructions and system requirements, visit the installation docs.

But to get started quickly, choose one of the installation methods below:

Download the .exe file from GitHub

Go to the PowerToys GitHub releases, scroll down and select Assets to reveal the installation files, and choose the one that matches your architecture and install scope. For most devices, that would be x64 per-user.

Microsoft Store
You can easily install PowerToys from the Microsoft Store:

WinGet
Download PowerToys from [WinGet](https://github.com/microsoft/winget-cli#installing-the-client). Updating PowerToys via winget will respect the current PowerToys installation scope. To install PowerToys, run the following command from the command line / PowerShell:
  • User scope installer (default)
winget install Microsoft.PowerToys -s winget
  • Machine-wide scope installer
winget install --scope machine Microsoft.PowerToys -s winget
Other methods
There are [community driven install methods](https://learn.microsoft.com/windows/powertoys/install#community-driven-install-tools) such as Chocolatey and Scoop. If these are your preferred install solutions, you can find the install instructions there.

What's new?

What's new image

To see what's new, check out the release notes.

🛣️ Roadmap

We are planning some nice new features and improvements for the next releases a brand-new Shortcut Guide experience, ensuring it's easier to find and install Command Palette extensions and so much more! Stay tuned for v0.100!

❤️ PowerToys Community

The PowerToys team is extremely grateful to have the support of an amazing active community. The work you do is incredibly important. PowerToys wouldn't be nearly what it is today without your help filing bugs, updating documentation, guiding the design, or writing features. We want to say thank you and take time to recognize your work. Your contributions and feedback improve PowerToys month after month!

Contributing

This project welcomes contributions of all types. Besides coding features / bug fixes, other ways to assist include spec writing, design, documentation, and finding bugs. We are excited to work with the power user community to build a set of tools for helping you get the most out of Windows. We ask that before you start work on a feature that you would like to contribute, please read our Contributor's Guide. We would be happy to work with you to figure out the best approach, provide guidance and mentorship throughout feature development, and help avoid any wasted or duplicate effort. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you grant us the rights to use your contribution and that you have permission to do so. For guidance on developing for PowerToys, please read the developer docs for a detailed breakdown. This includes how to setup your computer to compile.

Code of conduct

This project has adopted the Microsoft Open Source Code of Conduct.

Privacy statement

The application logs basic diagnostic data (telemetry). For more privacy information and what we collect, see our PowerToys Data and Privacy documentation.

Description
Microsoft PowerToys is a collection of utilities that help you customize Windows and streamline everyday tasks
Readme MIT 742 MiB
Languages
C 44.9%
C# 26.4%
JavaScript 14%
C++ 13.8%
PowerShell 0.6%
Other 0.2%