CodinGame / monaco-vscode-api

VSCode public API plugged on the monaco editor
MIT License
214 stars 29 forks source link

Only bundle used files when there is no extension script #328

Closed CGNonofr closed 6 months ago

CGNonofr commented 6 months ago

Recently, I've made a change to bundle all extension files in Rollup plugins.

I works well except if you try to load an extension designed for vscode desktop containing very big file (like the clang extension containing a >100mo binary).

You may want to load such extension to get the languages and grammars but don't care about the extension javascript code.

For instance, the Angular Language Service contains grammars extension for inline template but also the whole language server.

What this PR do is basically restoring the previous behavior when there is no javascript code designed to run in the browser inside the extension. In that case, it's possible to know all resources used by the manifest contributes.